Trait petgraph::visit::IntoNeighborsDirected
[−]
[src]
pub trait IntoNeighborsDirected: IntoNeighbors {
type NeighborsDirected: Iterator<Item=Self::NodeId>;
fn neighbors_directed(self, n: Self::NodeId, d: Direction) -> Self::NeighborsDirected;
}Access to the neighbors of each node, through incoming or outgoing edges.
Depending on the graph’s edge type, the neighbors of a given directionality are:
Directed,Outgoing: All targets of edges froma.Directed,Incoming: All sources of edges toa.Undirected: All other endpoints of edges connected toa.
Associated Types
type NeighborsDirected: Iterator<Item=Self::NodeId>
Required Methods
fn neighbors_directed(self, n: Self::NodeId, d: Direction) -> Self::NeighborsDirected
Implementors
impl<G> IntoNeighborsDirected for Reversed<G> where G: IntoNeighborsDirectedimpl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix> where Ty: EdgeType, Ix: IndexTypeimpl<'a, G> IntoNeighborsDirected for &'a G where G: IntoNeighborsDirected