Trait petgraph::visit::IntoNeighbors [−][src]
pub trait IntoNeighbors: GraphRef { type Neighbors: Iterator<Item = Self::NodeId>; fn neighbors(self, a: Self::NodeId) -> Self::Neighbors; }
Expand description
Access to the neighbors of each node
The neighbors are, depending on the graph’s edge type:
Directed: All targets of edges froma.Undirected: All other endpoints of edges connected toa.
Associated Types
Required methods
Implementations on Foreign Types
impl<'a, G> IntoNeighbors for &'a G where
G: IntoNeighbors, [src]
impl<'a, G> IntoNeighbors for &'a G where
G: IntoNeighbors, [src]Implementors
impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G> where
G: IntoNeighbors, [src]
impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G> where
G: IntoNeighbors, [src]impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>, [src]impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
G: IntoNeighbors,
F: FilterNode<G::NodeId>, [src]
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
G: IntoNeighbors,
F: FilterNode<G::NodeId>, [src]impl<'a, N, E, Ty, Ix> IntoNeighbors for &'a Csr<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
impl<'a, N, E, Ty, Ix> IntoNeighbors for &'a Csr<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]fn neighbors(self, a: Self::NodeId) -> Self::Neighbors[src]
fn neighbors(self, a: Self::NodeId) -> Self::Neighbors[src]Return an iterator of all neighbors of a.
Directed: Targets of outgoing edges froma.Undirected: Opposing endpoints of all edges connected toa.
Panics if the node a does not exist.
Iterator element type is NodeIndex<Ix>.
type Neighbors = Neighbors<'a, Ix>
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType, [src]impl<'a, N, E: 'a, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IntoNeighbors for &'a MatrixGraph<N, E, Ty, Null, Ix>[src]
impl<'a, N, E: 'a, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IntoNeighbors for &'a MatrixGraph<N, E, Ty, Null, Ix>[src]impl<'a, N: 'a, E, Ty> IntoNeighbors for &'a GraphMap<N, E, Ty> where
N: Copy + Ord + Hash,
Ty: EdgeType, [src]
impl<'a, N: 'a, E, Ty> IntoNeighbors for &'a GraphMap<N, E, Ty> where
N: Copy + Ord + Hash,
Ty: EdgeType, [src]impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected, [src]
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected, [src]