Struct petgraph::visit::SubTopo [] [src]

pub struct SubTopo<N, VM> { /* fields omitted */ }

A topological order traversal for a subgraph.

SubTopo starts at a node, and does a topological order traversal of all nodes reachable from the starting point.

Methods

impl<N, VM> SubTopo<N, VM> where N: Copy, VM: VisitMap<N>
[src]

Create a new SubTopo, using the graph's visitor map, and put single node in the to-visit list.

Clear visited state, and put a single node into the visit list.

Return the next node in the current topological order traversal, or None if the traversal is at the end.

Note: The subgraph may not have a complete topological order. If there is a cycle in the subgraph, then nodes of that cycle are included in this traversal.

Trait Implementations

impl<N: Clone, VM: Clone> Clone for SubTopo<N, VM>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more