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

type Iter: Iterator<Item=Self::NodeId>

Required Methods

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

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

Implementors