pub trait IntoNeighbors: GraphRef {
type Neighbors: Iterator<Item = Self::NodeId>;
// Required method
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.
Required Associated Types§
Required Methods§
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> IntoNeighbors for &'a Gwhere
G: IntoNeighbors,
impl<'a, G> IntoNeighbors for &'a Gwhere
G: IntoNeighbors,
Implementors§
Source§impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G>where
G: IntoNeighbors,
impl<'a, 'b, G> IntoNeighbors for &'b Frozen<'a, G>where
G: IntoNeighbors,
type Neighbors = <G as IntoNeighbors>::Neighbors
Source§impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F>
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F>
type Neighbors = EdgeFilteredNeighbors<'a, G, F>
Source§impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F>
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F>
type Neighbors = NodeFilteredNeighbors<'a, <G as IntoNeighbors>::Neighbors, F>
Source§impl<'a, N, E, Ty> IntoNeighbors for &'a GraphMap<N, E, Ty>
Available on crate feature graphmap only.
impl<'a, N, E, Ty> IntoNeighbors for &'a GraphMap<N, E, Ty>
Available on crate feature
graphmap only.Source§impl<'a, N, E, Ty, Ix> IntoNeighbors for &'a Csr<N, E, Ty, Ix>
impl<'a, N, E, Ty, Ix> IntoNeighbors for &'a Csr<N, E, Ty, Ix>
Source§impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix>
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a Graph<N, E, Ty, Ix>
Source§impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix>
Available on crate feature stable_graph only.
impl<'a, N, E: 'a, Ty, Ix> IntoNeighbors for &'a StableGraph<N, E, Ty, Ix>
Available on crate feature
stable_graph only.