Struct daggy::WalkParents [] [src]

pub struct WalkParents<Ix: IndexType> {
    // some fields omitted

A "walker" object that can be used to step through the children of some parent node.


impl<Ix> WalkParents<Ix> where Ix: IndexType

fn next<N, E>(&mut self, dag: &Dag<N, E, Ix>) -> Option<EdgeIndex<Ix>>

Fetch the next parent edge index in the walk for the given Dag.

fn next_parent<N, E>(&mut self, dag: &Dag<N, E, Ix>) -> Option<(EdgeIndex<Ix>, NodeIndex<Ix>)>

Fetch the EdgeIndex and NodeIndex to the next parent in the walk for the given Dag.