[−][src]Trait rs_graph::adjacencies::Adjacencies
Associated Types
Loading content...Required methods
fn first(&self, u: Self::Node) -> Option<Self::Incidence>
fn next(&self, it: Self::Incidence) -> Option<Self::Incidence>
fn get(&self, it: &Self::Incidence) -> (Self::Edge, Self::Node)
Provided methods
ⓘImportant traits for IncidenceIter<'a, 'g, G>fn neighs<'g>(&'g self, u: Self::Node) -> IncidenceIter<'a, 'g, Self> where
Self: Sized,
ⓘImportant traits for IncidenceIter<'a, 'g, G>
Self: Sized,
fn filter<P>(self, predicate: P) -> FilterAdjacencies<Self, P> where
Self: Sized,
P: for<'r> Fn(&'r (Self::Edge, Self::Node)) -> bool,
Self: Sized,
P: for<'r> Fn(&'r (Self::Edge, Self::Node)) -> bool,
Implementations on Foreign Types
impl<'a, A> Adjacencies<'a> for &'a A where
A: Adjacencies<'a>,
[src]
A: Adjacencies<'a>,
Implement Adjacencies for references.
type Incidence = A::Incidence
fn first(&self, u: Self::Node) -> Option<Self::Incidence>
[src]
fn next(&self, it: Self::Incidence) -> Option<Self::Incidence>
[src]
fn get(&self, it: &Self::Incidence) -> (Self::Edge, Self::Node)
[src]
Implementors
impl<'a, 'g: 'a, G> Adjacencies<'a> for InEdges<'g, G> where
G: Directed<'g>,
[src]
G: Directed<'g>,
type Incidence = G::InEdge
fn first(&self, u: Self::Node) -> Option<Self::Incidence>
[src]
fn next(&self, it: Self::Incidence) -> Option<Self::Incidence>
[src]
fn get(&self, it: &Self::Incidence) -> (Self::Edge, Self::Node)
[src]
impl<'a, 'g: 'a, G> Adjacencies<'a> for Neighbors<'g, G> where
G: Undirected<'g>,
[src]
G: Undirected<'g>,
type Incidence = G::Neigh
fn first(&self, u: Self::Node) -> Option<Self::Incidence>
[src]
fn next(&self, it: Self::Incidence) -> Option<Self::Incidence>
[src]
fn get(&self, it: &Self::Incidence) -> (Self::Edge, Self::Node)
[src]
impl<'a, 'g: 'a, G> Adjacencies<'a> for OutEdges<'g, G> where
G: Directed<'g>,
[src]
G: Directed<'g>,
type Incidence = G::OutEdge
fn first(&self, u: Self::Node) -> Option<Self::Incidence>
[src]
fn next(&self, it: Self::Incidence) -> Option<Self::Incidence>
[src]
fn get(&self, it: &Self::Incidence) -> (Self::Edge, Self::Node)
[src]
impl<'a, A, P> Adjacencies<'a> for FilterAdjacencies<A, P> where
A: Adjacencies<'a>,
P: 'a + Clone + for<'r> Fn(&'r (A::Edge, A::Node)) -> bool,
[src]
A: Adjacencies<'a>,
P: 'a + Clone + for<'r> Fn(&'r (A::Edge, A::Node)) -> bool,