Trait rs_graph::vec::GraphIndexer
[−]
[src]
pub trait GraphIndexer { type Graph; type Item; fn index(g: &Self::Graph, item: Self::Item) -> usize; fn num_items(g: &Self::Graph) -> usize; }
A mapper of graph items to indices.
Associated Types
Required Methods
Implementors
impl<'a, G: 'a> GraphIndexer for GraphNodeIndexer<'a, G> where
G: IndexGraph<'a>, type Graph = G; type Item = G::Node;impl<'a, G: 'a> GraphIndexer for GraphEdgeIndexer<'a, G> where
G: IndexGraph<'a>, type Graph = G; type Item = G::Edge;impl<'a, G: 'a> GraphIndexer for GraphBiEdgeIndexer<'a, G> where
G: IndexNetwork<'a>, type Graph = G; type Item = G::Edge;