Trait rs_graph::vec::NumberedIndexer[][src]

pub trait NumberedIndexer<I> {
    fn index(item: I) -> usize;
}

This trait maps nodes or edges to an index.

In contrast to vec::Indexer the mapping must be performed without access to the graph. Hence, the node_id and edge_id methods of an IndexGraph are not available.

Required Methods

Implementors