Trait petgraph::visit::IntoNeighbors
[−]
[src]
pub trait IntoNeighbors: GraphRef {
type Neighbors: Iterator<Item=Self::NodeId>;
fn neighbors(self, a: Self::NodeId) -> Self::Neighbors;
}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
fn neighbors(self, a: Self::NodeId) -> Self::Neighbors
Return an iterator of the neighbors of node a.
Implementors
impl<G> IntoNeighbors for Reversed<G> where G: IntoNeighborsDirectedimpl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G> where &'b G: IntoNeighbors, G: GraphBase<NodeId=&'b G::NodeId>impl<'b, N, E, Ty, Ix> IntoNeighbors for AsUndirected<&'b Graph<N, E, Ty, Ix>> where Ty: EdgeType, Ix: IndexTypeimpl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix> where Ty: EdgeType, Ix: IndexTypeimpl<'a, G> IntoNeighbors for &'a G where G: IntoNeighbors