pub trait IntoNeighborsDirected: IntoNeighbors {
    type NeighborsDirected: Iterator<Item = Self::NodeId>;

    // Required method
    fn neighbors_directed(
        self,
        n: Self::NodeId,
        d: Direction
    ) -> Self::NeighborsDirected;
}
Expand description

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 from a.
  • Directed, Incoming: All sources of edges to a.
  • Undirected: All other endpoints of edges connected to a.

Required Associated Types§

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, G> IntoNeighborsDirected for &'a G

Implementors§

source§

impl<'a, 'b, G> IntoNeighborsDirected for &'b Frozen<'a, G>

source§

impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F>

source§

impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F>

source§

impl<'a, N, E, Null, Ix> IntoNeighborsDirected for &'a MatrixGraph<N, E, Directed, Null, Ix>
where E: 'a, Null: Nullable<Wrapped = E>, Ix: IndexType,

§

type NeighborsDirected = Neighbors<'a, Directed, Null, Ix>

source§

impl<'a, N, E, Ty> IntoNeighborsDirected for &'a GraphMap<N, E, Ty>
where N: 'a + Copy + Ord + Hash, Ty: EdgeType,

source§

impl<'a, N, E, Ty, Ix> IntoNeighborsDirected for &'a StableGraph<N, E, Ty, Ix>
where E: 'a, Ty: EdgeType, Ix: IndexType,

§

type NeighborsDirected = Neighbors<'a, E, Ix>

source§

impl<'a, N, E, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix>
where E: 'a, Ty: EdgeType, Ix: IndexType,

§

type NeighborsDirected = Neighbors<'a, E, Ix>

source§

impl<G> IntoNeighborsDirected for Reversed<G>