Skip to main content

Module matrix_graph

Module matrix_graph 

Source
Expand description

MatrixGraph<N, E, Ty, NullN, NullE, Ix> is a graph datastructure backed by an adjacency matrix.

Re-exportsยง

pub use crate::graph::IndexType;

Modulesยง

private ๐Ÿ”’

Macrosยง

not_zero_impl ๐Ÿ”’
not_zero_impls ๐Ÿ”’

Structsยง

EdgeReferences
Iterator over all edges of a graph.
Edges
Iterator over the edges of from or to a node
IdIterator ๐Ÿ”’
IdStorage ๐Ÿ”’
MatrixGraph
MatrixGraph<N, E, Ty, Null> is a graph datastructure using an adjacency matrix representation.
Neighbors
Iterator over the neighbors of a node.
NodeIdentifiers
Iterator over the node identifiers of a graph.
NodeReferences
Iterator over all nodes of a graph.
NotZero
NotZero is used to optimize the memory usage of edge weights E in a MatrixGraph, replacing the default Option<E> sentinel.

Enumsยง

MatrixError
The error type for fallible MatrixGraph operations.
NeighborIterDirection ๐Ÿ”’

Traitsยง

Nullable
Wrapper trait for an Option, allowing user-defined structs to be input as containers when defining a null element.
Zero
Base trait for types that can be wrapped in a NotZero.

Functionsยง

ensure_len ๐Ÿ”’
Grow a Vec by appending the typeโ€™s default value until the size is reached.
extend_flat_square_matrix ๐Ÿ”’
extend_linearized_matrix ๐Ÿ”’
extend_lower_triangular_matrix ๐Ÿ”’
node_index
Short version of NodeIndex::new (with Ix = DefaultIx)
to_flat_square_matrix_position ๐Ÿ”’
to_linearized_matrix_position ๐Ÿ”’
to_lower_triangular_matrix_position ๐Ÿ”’

Type Aliasesยง

DefaultIx ๐Ÿ”’
DiMatrix
A MatrixGraph with directed edges.
NodeIndex
Node identifier.
UnMatrix
A MatrixGraph with undirected edges.