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ยง
- Edge
References - Iterator over all edges of a graph.
- Edges
- Iterator over the edges of from or to a node
- IdIterator ๐
- IdStorage ๐
- Matrix
Graph MatrixGraph<N, E, Ty, Null>is a graph datastructure using an adjacency matrix representation.- Neighbors
- Iterator over the neighbors of a node.
- Node
Identifiers - Iterator over the node identifiers of a graph.
- Node
References - Iterator over all nodes of a graph.
- NotZero
NotZerois used to optimize the memory usage of edge weightsEin aMatrixGraph, replacing the defaultOption<E>sentinel.
Enumsยง
- Matrix
Error - The error type for fallible
MatrixGraphoperations. - Neighbor
Iter ๐Direction
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
sizeis 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