pub trait EdgeIndexable: GraphBase {
    fn edge_bound(&self) -> usize;
    fn to_index(&self, a: Self::EdgeId) -> usize;
    fn from_index(&self, i: usize) -> Self::EdgeId;
}
Expand description

The graph’s NodeIds map to indices

Required Methods

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

Convert a to an integer index.

Convert i to an edge index. i must be a valid value in the graph.

Implementations on Foreign Types

Implementors