WithVertexIndexProp

Trait WithVertexIndexProp 

Source
pub trait WithVertexIndexProp: WithVertex {
    type VertexIndexProp: VertexPropGet<Self, usize>;

    // Required method
    fn vertex_index(&self) -> VertexIndexProp<Self>;
}
Expand description

A graph that has a property that maps each vertex to an integer in the range 0..num_vertices.

Required Associated Types§

Required Methods§

Source

fn vertex_index(&self) -> VertexIndexProp<Self>

Creates an vertex index map.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, G: WithVertexIndexProp> WithVertexIndexProp for &'a G

Implementors§