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>
[src]
Required methods
fn neighbors_directed(
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
[src]
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
Implementations on Foreign Types
impl<'a, G> IntoNeighborsDirected for &'a G where
G: IntoNeighborsDirected,
[src]
impl<'a, G> IntoNeighborsDirected for &'a G where
G: IntoNeighborsDirected,
[src]type NeighborsDirected = G::NeighborsDirected
fn neighbors_directed(
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
[src]
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
Implementors
impl<'a, 'b, G> IntoNeighborsDirected for &'b Frozen<'a, G> where
G: IntoNeighborsDirected,
[src]
impl<'a, 'b, G> IntoNeighborsDirected for &'b Frozen<'a, G> where
G: IntoNeighborsDirected,
[src]type NeighborsDirected = G::NeighborsDirected
fn neighbors_directed(
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
[src]
self,
n: Self::NodeId,
d: Direction
) -> Self::NeighborsDirected
impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
[src]
impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
[src]type NeighborsDirected = EdgeFilteredNeighborsDirected<'a, G, F>
fn neighbors_directed(
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
[src]
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
[src]
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
[src]type NeighborsDirected = NodeFilteredNeighbors<'a, G::NeighborsDirected, F>
fn neighbors_directed(
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
[src]
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
impl<'a, N, E: 'a, Null: Nullable<Wrapped = E>, Ix: IndexType> IntoNeighborsDirected for &'a MatrixGraph<N, E, Directed, Null, Ix>
[src]
impl<'a, N, E: 'a, Null: Nullable<Wrapped = E>, Ix: IndexType> IntoNeighborsDirected for &'a MatrixGraph<N, E, Directed, Null, Ix>
[src]type NeighborsDirected = Neighbors<'a, Directed, Null, Ix>
fn neighbors_directed(
self,
a: NodeIndex<Ix>,
d: Direction
) -> Self::NeighborsDirected
[src]
self,
a: NodeIndex<Ix>,
d: Direction
) -> Self::NeighborsDirected
impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
impl<'a, N, E: 'a, Ty, Ix> IntoNeighborsDirected for &'a StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]type NeighborsDirected = Neighbors<'a, E, Ix>
fn neighbors_directed(
self,
n: NodeIndex<Ix>,
d: Direction
) -> Self::NeighborsDirected
[src]
self,
n: NodeIndex<Ix>,
d: Direction
) -> Self::NeighborsDirected
impl<'a, N: 'a, E, Ty> IntoNeighborsDirected for &'a GraphMap<N, E, Ty> where
N: Copy + Ord + Hash,
Ty: EdgeType,
[src]
impl<'a, N: 'a, E, Ty> IntoNeighborsDirected for &'a GraphMap<N, E, Ty> where
N: Copy + Ord + Hash,
Ty: EdgeType,
[src]type NeighborsDirected = NeighborsDirected<'a, N, Ty>
fn neighbors_directed(self, n: N, dir: Direction) -> Self::NeighborsDirected
[src]
impl<G> IntoNeighborsDirected for Reversed<G> where
G: IntoNeighborsDirected,
[src]
impl<G> IntoNeighborsDirected for Reversed<G> where
G: IntoNeighborsDirected,
[src]