Trait daggy::petgraph::visit::NeighborIter [] [src]

pub trait NeighborIter<'a>: Graphlike where Self::Iter::Item == Self::NodeId {
    type Iter: Iterator;
    fn neighbors(&'a self, n: Self::NodeId) -> Self::Iter;
}

NeighborIter gives access to the neighbors iterator.

Associated Types

Required Methods

Return an iterator that visits all neighbors of the node n.

Implementors