Trait petgraph::graph::IndexType [] [src]

pub unsafe trait IndexType: Copy + Ord + Debug + 'static {
    fn new(x: usize) -> Self;
    fn index(&self) -> usize;
    fn max() -> Self;
}

Trait for the unsigned integer type used for node and edge indices.

Marked unsafe because: the trait must faithfully preseve and convert index values.

Required Methods

fn new(x: usize) -> Self

fn index(&self) -> usize

fn max() -> Self

Implementors