Struct rs_graph::filtered::FilteredGraph[][src]

pub struct FilteredGraph<'a, G, P> where
    G: GraphType<'a>,
    P: for<'r> Fn(&'r G::Edge) -> bool
{ /* fields omitted */ }

Trait Implementations

impl<'a, G, P> Directed<'a> for FilteredGraph<'a, G, P> where
    G: Directed<'a>,
    P: 'a + for<'r> Fn(&'r G::Edge) -> bool
[src]

type OutIt = Filtered<G::OutIt>

Type of a graph iterator over edges leaving a node.

type InIt = Filtered<G::InIt>

Type of a graph iterator over edges entering a node.

type IncidentIt = FilteredIncidentIt<G::IncidentIt>

Type of an iterator over all incident edges.

type DirectedEdge = G::DirectedEdge

Type of a directed edge.

fn src(&'a self, e: Self::Edge) -> Self::Node[src]

Return the source node of an edge.

fn snk(&'a self, e: Self::Edge) -> Self::Node[src]

Return the sink node of an edge.

fn out_iter(&'a self, u: Self::Node) -> Self::OutIt[src]

Return a graph iterator over the edges leaving a node.

fn in_iter(&'a self, u: Self::Node) -> Self::InIt[src]

Return a graph iterator over the edges leaving a node.

fn incident_iter(&'a self, u: Self::Node) -> Self::IncidentIt[src]

Return an iterator over all directed edges incident with a node.

fn outedges(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::OutIt>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    Self: Sized
[src]

Return an iterator over the edges leaving a node.

fn outgoing(&'a self) -> OutEdges<'a, Self> where
    Self: Sized
[src]

Return access to the outgoing arcs via an Adjacencies trait. Read more

fn inedges(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::InIt>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    Self: Sized
[src]

Return an iterator over the edges leaving a node.

fn incoming(&'a self) -> InEdges<'a, Self> where
    Self: Sized
[src]

Return access to the incoming arcs via an Adjacencies trait. Read more

fn incident_edges(
    &'a self,
    u: Self::Node
) -> GraphIter<'a, Self, Self::IncidentIt>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    Self: Sized
[src]

Return an iterator over all directed edges incident with a node.

impl<'a, G, P, I> GraphIterator<FilteredGraph<'a, G, P>> for Filtered<I> where
    G: GraphType<'a>,
    P: for<'r> Fn(&'r G::Edge) -> bool,
    I: GraphIterator<G, Item = (G::Edge, G::Node)>, 
[src]

type Item = I::Item

fn next(&mut self, g: &FilteredGraph<'a, G, P>) -> Option<Self::Item>[src]

fn size_hint(&self, _g: &G) -> (usize, Option<usize>)[src]

fn count(self, g: &G) -> usize[src]

fn iter<'a>(self, g: &'a G) -> GraphIter<'a, G, Self>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    G: Sized
[src]

impl<'a, G, P, I> GraphIterator<FilteredGraph<'a, G, P>> for FilteredIncidentIt<I> where
    G: Directed<'a>,
    P: for<'r> Fn(&'r G::Edge) -> bool,
    I: GraphIterator<G, Item = (G::DirectedEdge, G::Node)>, 
[src]

type Item = I::Item

fn next(&mut self, g: &FilteredGraph<'a, G, P>) -> Option<Self::Item>[src]

fn size_hint(&self, _g: &G) -> (usize, Option<usize>)[src]

fn count(self, g: &G) -> usize[src]

fn iter<'a>(self, g: &'a G) -> GraphIter<'a, G, Self>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    G: Sized
[src]

impl<'a, G, P, I> GraphIterator<FilteredGraph<'a, G, P>> for FilterWrapIt<I> where
    G: GraphType<'a>,
    P: for<'r> Fn(&'r G::Edge) -> bool,
    I: GraphIterator<G>, 
[src]

type Item = I::Item

fn next(&mut self, g: &FilteredGraph<'a, G, P>) -> Option<I::Item>[src]

fn size_hint(&self, g: &FilteredGraph<'a, G, P>) -> (usize, Option<usize>)[src]

fn count(self, g: &FilteredGraph<'a, G, P>) -> usize[src]

fn iter<'a>(self, g: &'a G) -> GraphIter<'a, G, Self>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    G: Sized
[src]

impl<'a, G, P> GraphIterator<FilteredGraph<'a, G, P>> for FilterEdgeIt<G::EdgeIt> where
    G: GraphSize<'a>,
    P: for<'r> Fn(&'r G::Edge) -> bool
[src]

type Item = G::Edge

fn next(&mut self, g: &FilteredGraph<'a, G, P>) -> Option<G::Edge>[src]

fn size_hint(&self, _g: &G) -> (usize, Option<usize>)[src]

fn count(self, g: &G) -> usize[src]

fn iter<'a>(self, g: &'a G) -> GraphIter<'a, G, Self>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    G: Sized
[src]

impl<'a, G, P> GraphSize<'a> for FilteredGraph<'a, G, P> where
    G: GraphSize<'a>,
    P: 'a + for<'r> Fn(&'r G::Edge) -> bool
[src]

type NodeIt = FilterWrapIt<G::NodeIt>

Type of an iterator over all nodes.

type EdgeIt = FilterEdgeIt<G::EdgeIt>

Type of an iterator over all edges.

fn num_nodes(&self) -> usize[src]

Return the number of nodes in the graph.

fn num_edges(&self) -> usize[src]

Return the number of edges in the graph.

fn nodes_iter(&'a self) -> Self::NodeIt[src]

Return a graph iterator over all nodes.

fn edges_iter(&self) -> Self::EdgeIt[src]

Return a graph iterator over all edges. Read more

fn nodes(&'a self) -> NodeIterator<'a, Self> where
    Self: Sized
[src]

Return an iterator over all nodes.

fn edges(&'a self) -> EdgeIterator<'a, Self> where
    Self: Sized
[src]

Return an iterator over all edges. Read more

impl<'a, G, P> GraphType<'a> for FilteredGraph<'a, G, P> where
    G: GraphType<'a>,
    P: 'a + for<'r> Fn(&'r G::Edge) -> bool
[src]

type Node = G::Node

Type of a node.

type Edge = G::Edge

Type of an edge.

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]

type NeighIt = Filtered<G::NeighIt>

Type of a graph iterator over all incident edges.

fn enodes(&'a self, e: Self::Edge) -> (Self::Node, Self::Node)[src]

Return the nodes connected by an edge. Read more

fn neigh_iter(&'a self, u: Self::Node) -> Self::NeighIt[src]

Return a graph iterator over the edges adjacent to some node.

fn neighs(&'a self, u: Self::Node) -> GraphIter<'a, Self, Self::NeighIt>

Notable traits for GraphIter<'a, G, I>

impl<'a, G, I> Iterator for GraphIter<'a, G, I> where
    I: GraphIterator<G>, 
type Item = I::Item;
where
    Self: Sized
[src]

Return an iterator over the edges adjacent to some node.

fn neighbors(&'a self) -> Neighbors<'a, Self> where
    Self: Sized
[src]

Return access to the neighbors via an Adjacencies trait. Read more

Auto Trait Implementations

impl<'a, G, P> RefUnwindSafe for FilteredGraph<'a, G, P> where
    G: RefUnwindSafe,
    P: RefUnwindSafe

impl<'a, G, P> Send for FilteredGraph<'a, G, P> where
    G: Sync,
    P: Send

impl<'a, G, P> Sync for FilteredGraph<'a, G, P> where
    G: Sync,
    P: Sync

impl<'a, G, P> Unpin for FilteredGraph<'a, G, P> where
    P: Unpin

impl<'a, G, P> UnwindSafe for FilteredGraph<'a, G, P> where
    G: RefUnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<'a, G> Digraph<'a> for G where
    G: GraphSize<'a> + Directed<'a>, 
[src]

impl<'a, G> Graph<'a> for G where
    G: GraphSize<'a> + Undirected<'a>, 
[src]