|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Adjacency matrix representations for graphs. More...
Go to the source code of this file.
Classes | |
| class | Aleph::Map_Matrix_Graph< GT, SA > |
| Adjacency matrix mapped to an adjacency list graph. More... | |
| struct | Aleph::Map_Matrix_Graph< GT, SA >::Mat_Entry |
| class | Aleph::Matrix_Graph< GT, SA > |
| Adjacency matrix storing copies of graph attributes. More... | |
| class | Aleph::Ady_Mat< GT, __Entry_Type, SA > |
| Auxiliary adjacency matrix with custom entry type. More... | |
| class | Aleph::Bit_Mat_Graph< GT, SA > |
| Bit matrix for graph connectivity. More... | |
| struct | Aleph::Bit_Mat_Graph< GT, SA >::Proxy |
| Proxy for bit access. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
| namespace | Aleph::matgraph_detail |
Functions | |
| template<typename GT > | |
| GT::Node * | Aleph::matgraph_detail::get_node (DynArray< typename GT::Node * > &nodes, long i) |
| Get node pointer from sorted node array by index. | |
| template<typename GT > | |
| GT::Node * | Aleph::matgraph_detail::get_node (const DynArray< typename GT::Node * > &nodes, long i) |
| Get node pointer from sorted node array by index (const version). | |
| template<typename GT > | |
| long | Aleph::matgraph_detail::node_index (const DynArray< typename GT::Node * > &nodes, long n, typename GT::Node *p) |
| Find index of node in sorted array using binary search. | |
| long | Aleph::matgraph_detail::index_array (long i, long j, long n) noexcept |
| Convert 2D matrix indices to 1D array index. | |
| long | Aleph::matgraph_detail::checked_index_array (long i, long j, long n) |
| Validate and convert indices to linear index. | |
| template<typename Entry > | |
| Entry * | Aleph::matgraph_detail::read_matrix (const DynArray< Entry > &mat, long i, long j, long n) |
| Read matrix entry if it exists. | |
| template<typename Entry > | |
| void | Aleph::matgraph_detail::write_matrix (DynArray< Entry > &mat, long i, long j, long n, const Entry &entry) |
| Write entry to matrix. | |
Adjacency matrix representations for graphs.
This file provides several adjacency matrix representations for graphs:
Use adjacency matrices when:
For sparse graphs, prefer adjacency list representations.
Definition in file tpl_matgraph.H.