VertexList

Trait VertexList 

Source
pub trait VertexList: Sized + WithVertex {
    // Required method
    fn vertices(&self) -> VertexIter<'_, Self>;

    // Provided method
    fn num_vertices(&self) -> usize { ... }
}

Required Methods§

Source

fn vertices(&self) -> VertexIter<'_, Self>

Provided Methods§

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: VertexList> VertexList for &'a G

Source§

fn vertices(&self) -> VertexIter<'_, Self>

Source§

fn num_vertices(&self) -> usize

Implementors§

Source§

impl<'a, G> VertexList for SpanningSubgraph<'a, G>
where G: 'a + WithEdge + WithVertexProp<Vec<Edge<G>>> + VertexList,

Source§

impl<'a, G> VertexList for Subgraph<'a, G>
where G: 'a + Graph,

Source§

impl<K: CompleteEdgeKind> VertexList for Complete<K>

Source§

impl<V, K> VertexList for AdjSet<V, K>
where V: AdjSetVertex, K: AdjSetEdgeKind<V>,

Source§

impl<V: Num, K: StaticEdgeKind> VertexList for Static<V, K>