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 froma.Directed,Incoming: All sources of edges toa.Undirected: All other endpoints of edges connected toa.
Required Associated Types§
type NeighborsDirected: Iterator<Item = Self::NodeId>
Required Methods§
fn neighbors_directed( self, n: Self::NodeId, d: Direction, ) -> Self::NeighborsDirected
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'a, G> IntoNeighborsDirected for &'a Gwhere
G: IntoNeighborsDirected,
impl<'a, G> IntoNeighborsDirected for &'a Gwhere
G: IntoNeighborsDirected,
type NeighborsDirected = <G as IntoNeighborsDirected>::NeighborsDirected
fn neighbors_directed( self, n: Self::NodeId, d: Direction, ) -> Self::NeighborsDirected
Implementors§
Source§impl<'a, 'b, G> IntoNeighborsDirected for &'b Frozen<'a, G>where
G: IntoNeighborsDirected,
impl<'a, 'b, G> IntoNeighborsDirected for &'b Frozen<'a, G>where
G: IntoNeighborsDirected,
type NeighborsDirected = <G as IntoNeighborsDirected>::NeighborsDirected
Source§impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F>
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F>
type NeighborsDirected = NodeFilteredNeighbors<'a, <G as IntoNeighborsDirected>::NeighborsDirected, F>
Source§impl<'a, N, E, Ty> IntoNeighborsDirected for &'a GraphMap<N, E, Ty>
Available on crate feature graphmap only.
impl<'a, N, E, Ty> IntoNeighborsDirected for &'a GraphMap<N, E, Ty>
Available on crate feature
graphmap only.type NeighborsDirected = NeighborsDirected<'a, N, Ty>
Source§impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix>
impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix>
type NeighborsDirected = Neighbors<'a, E, Ix>
Source§impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a StableGraph<N, E, Ty, Ix>
Available on crate feature stable_graph only.
impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a StableGraph<N, E, Ty, Ix>
Available on crate feature
stable_graph only.