Trait rs_graph::traits::Undirected [−][src]
pub trait Undirected<'a>: GraphSize<'a> { type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>; fn enodes(&'a self, e: Self::Edge) -> (Self::Node, Self::Node); fn neigh_iter(&'a self, u: Self::Node) -> Self::NeighIt; fn neighs(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::NeighIt>ⓘ
where
Self: Sized, { ... } fn neighbors(&'a self) -> Neighbors<'a, Self>
where
Self: Sized, { ... } }
A graph with list access to undirected incident edges.
Associated Types
type NeighIt: GraphIterator<Self, Item = (Self::Edge, Self::Node)>
[src]
Type of a graph iterator over all incident edges.
Required methods
fn enodes(&'a self, e: Self::Edge) -> (Self::Node, Self::Node)
[src]
Return the nodes connected by an edge.
The order of the nodes is undefined.
fn neigh_iter(&'a self, u: Self::Node) -> Self::NeighIt
[src]
Return a graph iterator over the edges adjacent to some node.
Provided methods
fn neighs(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::NeighIt>ⓘ where
Self: Sized,
[src]
Self: Sized,
Return an iterator over the edges adjacent to some node.
fn neighbors(&'a self) -> Neighbors<'a, Self> where
Self: Sized,
[src]
Self: Sized,
Return access to the neighbors via an Adjacencies
trait.
This is the same as calling Neighbors(&g)
on the graph.
Implementations on Foreign Types
impl<'a, 'g: 'a, G> Undirected<'a> for &'g G where
G: Undirected<'g>,
[src]
impl<'a, 'g: 'a, G> Undirected<'a> for &'g G where
G: Undirected<'g>,
[src]Implementors
impl<'a, 'g: 'a, G> Undirected<'a> for Network<'g, G> where
G: Digraph<'g>,
[src]
impl<'a, 'g: 'a, G> Undirected<'a> for Network<'g, G> where
G: Digraph<'g>,
[src]impl<'a, 'g: 'a, G> Undirected<'a> for ReverseDigraph<'g, G> where
G: Undirected<'g>,
[src]
impl<'a, 'g: 'a, G> Undirected<'a> for ReverseDigraph<'g, G> where
G: Undirected<'g>,
[src]impl<'a, G, Gx, Nx, Ex> Undirected<'a> for Attributed<G, Gx, Nx, Ex> where
G: Undirected<'a>,
Gx: 'a + Default,
Nx: 'a + Default,
Ex: 'a + Default,
[src]
impl<'a, G, Gx, Nx, Ex> Undirected<'a> for Attributed<G, Gx, Nx, Ex> where
G: Undirected<'a>,
Gx: 'a + Default,
Nx: 'a + Default,
Ex: 'a + Default,
[src]impl<'a, G, P> Undirected<'a> for FilteredGraph<'a, G, P> where
G: Undirected<'a>,
P: 'a + for<'r> Fn(&'r G::Edge) -> bool,
[src]
impl<'a, G, P> Undirected<'a> for FilteredGraph<'a, G, P> where
G: Undirected<'a>,
P: 'a + for<'r> Fn(&'r G::Edge) -> bool,
[src]impl<'a, ID> Undirected<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]
impl<'a, ID> Undirected<'a> for VecGraph<ID> where
ID: 'a + PrimInt + Unsigned,
[src]