Adjacency

Trait Adjacency 

Source
pub trait Adjacency: WithVertex {
    // Required method
    fn out_neighbors(&self, v: Vertex<Self>) -> OutNeighborIter<'_, Self>;

    // Provided method
    fn out_degree(&self, v: Vertex<Self>) -> usize { ... }
}

Required Methods§

Source

fn out_neighbors(&self, v: Vertex<Self>) -> OutNeighborIter<'_, Self>

Provided Methods§

Source

fn out_degree(&self, v: Vertex<Self>) -> usize

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

Source§

fn out_neighbors(&self, v: Vertex<Self>) -> OutNeighborIter<'_, Self>

Source§

fn out_degree(&self, v: Vertex<Self>) -> usize

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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