Trait rs_graph::traits::refs::UndirectedRef
source · pub trait UndirectedRef<'a>: GraphTypeRef<'a> {
type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>;
// Required method
fn neigh_iter(&self, u: Self::Node) -> Self::NeighIt;
// Provided method
fn neighs(&self, u: Self::Node) -> GraphIter<'_, Self, Self::NeighIt> ⓘ
where Self: Sized { ... }
}
Expand description
A reference to an undirected graph.
This trait contains methods with a unrestricted lifetime for self
.
Required Associated Types§
sourcetype NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>
type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>
Type of a graph iterator over all incident edges.
Required Methods§
sourcefn neigh_iter(&self, u: Self::Node) -> Self::NeighIt
fn neigh_iter(&self, u: Self::Node) -> Self::NeighIt
Return a graph iterator over the edges adjacent to some node.