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

pub trait NeighborIter<'a>: Graphlike {
    type Iter: Iterator<Item=Self::NodeId>;
    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