Trait fera::graph::props::WithVertexIndexProp
source · pub trait WithVertexIndexProp: WithVertex {
type VertexIndexProp: VertexPropGet<Self, usize>;
fn vertex_index(&self) -> Self::VertexIndexProp;
}
Expand description
A graph that has a property that maps each vertex to an integer in the range 0..num_vertices
.
Required Associated Types§
type VertexIndexProp: VertexPropGet<Self, usize>
Required Methods§
sourcefn vertex_index(&self) -> Self::VertexIndexProp
fn vertex_index(&self) -> Self::VertexIndexProp
Creates an vertex index map.