|
Template Numerical Library version\ main:4e6e2c1
|
View type for accessing individual graph vertices and their edges. More...
View type for accessing individual graph vertices and their edges.
GraphVertexView provides access to a single vertex (node) in a graph, allowing iteration over its edges, accessing edge weights, and modifying edge properties. It is similar to a matrix row view but provides graph-specific interface methods.
The GraphVertexView is typically obtained from a Graph using methods like getVertex() or during parallel traversal with forAllVertices(). It wraps either a dense or sparse matrix row view, depending on the underlying adjacency matrix type.
| MatrixView | Type of the underlying matrix view (DenseMatrixView or SparseMatrixView). |
| Orientation | Graph orientation (DirectedGraph or UndirectedGraph). |