Trait petgraph::visit::NodeIndexable [] [src]

pub trait NodeIndexable: GraphBase {
    fn node_bound(&self) -> usize;
    fn to_index(a: Self::NodeId) -> usize;
}

The graph’s NodeIds map to indices

Required Methods

Return an upper bound of the node indices in the graph (suitable for the size of a bitmap).

Convert a to an integer index.

Implementors