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

type Iter: Iterator

Required Methods

fn neighbors(&'a self, n: Self::NodeId) -> Self::Iter

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

Implementors