Trait petgraph::visit::NeighborsDirected [] [src]

pub trait NeighborsDirected<'a>: Graphlike {
    type NeighborsDirected: Iterator<Item = Self::NodeId>;
    fn neighbors_directed(
        &'a self,
        n: Self::NodeId,
        d: EdgeDirection
    ) -> Self::NeighborsDirected; }

NeighborsDirected gives access to neighbors of both Incoming and Outgoing edges of a node.

Associated Types

Required Methods

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

Implementors