BackwardNavigableGraph

Trait BackwardNavigableGraph 

Source
pub trait BackwardNavigableGraph<'a, N, E>: Graph<N, E> {
    type InEdgeIterator: Iterator<Item = EdgeId> + 'a;

    // Required method
    fn in_edges(&self, id: NodeId) -> Self::InEdgeIterator;
}
Expand description

A backward navigable graph.

Graphs implementing this trait are able to output a nodes in-edges efficiently. For undirected graphs, out-edges and in-edges are the same.

Required Associated Types§

Source

type InEdgeIterator: Iterator<Item = EdgeId> + 'a

An iterator over the in-edges of a node.

Required Methods§

Source

fn in_edges(&self, id: NodeId) -> Self::InEdgeIterator

Returns an iterator over the in-edges of the node identified by the given id.

Implementors§