Struct daggy::walker::Peekable [] [src]

pub struct Peekable<G, Ix, W> where
    Ix: IndexType
{ /* fields omitted */ }

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

Methods

impl<G, Ix, W> Peekable<G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>, 
[src]

[src]

The edge node index pair of the neighbor at the next step in our walk of the given graph.

[src]

The edge index of the neighbor at the next step in our walk of the given graph.

[src]

The node index of the neighbor at the next step in our walk of the given graph.

Trait Implementations

impl<G: Clone, Ix: Clone, W: Clone> Clone for Peekable<G, Ix, W> where
    Ix: IndexType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<G: Debug, Ix: Debug, W: Debug> Debug for Peekable<G, Ix, W> where
    Ix: IndexType
[src]

[src]

Formats the value using the given formatter. Read more

impl<G, Ix, W> Walker<G> for Peekable<G, Ix, W> where
    Ix: IndexType,
    W: Walker<G, Index = Ix>, 
[src]

The unsigned integer type used for node and edge indices.

[src]

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

[src]

The next edge in our walk for the given Graph.

[src]

The next node in our walk for the given Graph.

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns the edge index satisfying the specified predicate. Read more

[src]

Returns the node index satisfying the specified predicate. Read more

[src]

Repeats the walker endlessly.

[src]

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

[src]

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

Important traits for Iter<'a, G, Ix, W>
[src]

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

Important traits for IterWeights<'a, G, Ix, W>
[src]

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