[−][src]Trait petgraph::visit::IntoNeighbors
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
Loading content...Required methods
fn neighbors(self, a: Self::NodeId) -> Self::Neighbors
Return an iterator of the neighbors of node a
.
Implementations on Foreign Types
impl<'a, G> IntoNeighbors for &'a G where
G: IntoNeighbors,
[src]
Loading content...G: IntoNeighbors,
Implementors
impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G> where
G: IntoNeighbors,
[src]
G: IntoNeighbors,
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
[src]
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
type Neighbors = EdgeFilteredNeighbors<'a, G, F>
fn neighbors(self, n: G::NodeId) -> Self::Neighbors
[src]
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
[src]
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
type Neighbors = NodeFilteredNeighbors<'a, G::Neighbors, F>
fn neighbors(self, n: G::NodeId) -> Self::Neighbors
[src]
impl<'a, N, E, Ty, Ix> IntoNeighbors for &'a Csr<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
Ty: EdgeType,
Ix: IndexType,
type Neighbors = Neighbors<'a, Ix>
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>
.
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
Ty: EdgeType,
Ix: IndexType,
type Neighbors = Neighbors<'a, E, Ix>
fn neighbors(self, n: NodeIndex<Ix>) -> Neighbors<'a, E, Ix>ⓘ
[src]
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix> where
Ty: EdgeType,
Ix: IndexType,
[src]
Ty: EdgeType,
Ix: IndexType,
impl<'a, N: 'a, E, Ty> IntoNeighbors for &'a GraphMap<N, E, Ty> where
N: Copy + Ord + Hash,
Ty: EdgeType,
[src]
N: Copy + Ord + Hash,
Ty: EdgeType,
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected,
[src]
G: IntoNeighborsDirected,