Struct daggy::Parents [] [src]

pub struct Parents<N, E, Ix: IndexType> { /* fields omitted */ }

A Walker type that can be used to step through the children of some parent node.

Trait Implementations

impl<N, E, Ix> Walker<Dag<N, E, Ix>> for Parents<N, E, Ix> where Ix: IndexType
[src]

The unsigned integer type used for node and edge indices.

Fetch the EdgeIndex and NodeIndex to the next neighbour in our walk through the given Graph. Read more

The next edge in our walk for the given Graph.

The next node in our walk for the given Graph.

Counts all the steps in the entire walk of the given graph.

Walks the whole walk until reaching and returning the last edge node pair.

Walks the whole walk until reaching and returning the last edge.

Walks the whole walk until reaching and returning the last node.

Walks "n" number of steps and produces the resulting edge node pair.

Walks "n" number of steps and produces the resulting edge.

Walks "n" number of steps and produces the resulting node.

Produces a walker that will walk the entirey of self before walking the entirey of other.

Creates a walker that applies the predicate to each element returned by this walker. The only elements that will be yielded are those that make the predicate evaluate to true. Read more

Creates a walker that has a .peek(&graph) method that returns an optional next neighbor.

Creates a walker that invokes the predicate on elements until it returns false. Once the predicate returns false, that element and all further elements are yielded. Read more

Creates a walker that yields elements so long as the predicate returns true. After the predicate returns false for the first time, no further elements will be yielded. Read more

Creates a walker that skips the first n steps of this walk, and then yields all further steps. Read more

Creates a walker that yields the first n steps of this walk.

Tests whether the predicate holds true for all steps in the walk.

Tests whether any step in the walk satisfies the given predicate. Read more

Returns the first edge node index pair satisfying the specified predicate. Read more

Returns the edge index satisfying the specified predicate. Read more

Returns the node index satisfying the specified predicate. Read more

Repeats the walker endlessly.

Performs a fold operation over the entire walker, returning the eventual state at the end of the walk. Read more

Creates a walker that calls a function with a reference to each index pair before yielding them. This is often useful for debugging a walker pipeline. Read more

Converts the walker into an iterator yielding index pairs. Read more

Converts the walker into an iterator yielding (&e, &n), where e is the edge weight for the next EdgeIndex and n is the node weight for the next NodeIndex. Read more