Trait petgraph::visit::NodeIndexable
[−]
[src]
pub trait NodeIndexable: GraphBase { fn node_bound(&self) -> usize; fn to_index(Self::NodeId) -> usize; }
The graph’s NodeId
s map to indices
Required Methods
fn node_bound(&self) -> usize
fn to_index(Self::NodeId) -> usize
Implementors
impl<N, E, Ty, Ix> NodeIndexable for StableGraph<N, E, Ty, Ix> where Ty: EdgeType, Ix: IndexType
impl<'a, G> NodeIndexable for &'a G where G: NodeIndexable
impl<N, E, Ty, Ix> NodeIndexable for Graph<N, E, Ty, Ix> where Ty: EdgeType, Ix: IndexType