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 from- a.
- Undirected: All other endpoints of edges connected to- a.
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.