pub type PostOrderForwardDfs<Graph> = DfsPostOrderTraversal<Graph, ForwardNeighborStrategy, VecDeque<<Graph as GraphBase>::NodeIndex>>;
Expand description
A post-order forward DFS in a directed graph.
Aliased Type§
struct PostOrderForwardDfs<Graph> { /* private fields */ }
Implementations
Source§impl<Graph: StaticGraph, NeighborStrategy: TraversalNeighborStrategy<Graph>, Queue: BidirectedQueue<Graph::NodeIndex>> DfsPostOrderTraversal<Graph, NeighborStrategy, Queue>
impl<Graph: StaticGraph, NeighborStrategy: TraversalNeighborStrategy<Graph>, Queue: BidirectedQueue<Graph::NodeIndex>> DfsPostOrderTraversal<Graph, NeighborStrategy, Queue>
Sourcepub fn new(graph: &Graph, start: Graph::NodeIndex) -> Self
pub fn new(graph: &Graph, start: Graph::NodeIndex) -> Self
Creates a new traversal that operates on the given graph, starting from the given node.
Sourcepub fn new_without_start(graph: &Graph) -> Self
pub fn new_without_start(graph: &Graph) -> Self
Creates a new traversal that operates on the given graph.
There is no starting node given, and to start the search, one of the reset
methods needs to be used.
Sourcepub fn reset(&mut self, start: Graph::NodeIndex)
pub fn reset(&mut self, start: Graph::NodeIndex)
Resets the traversal to start from the given node.
Sourcepub fn continue_traversal_from(&mut self, start: Graph::NodeIndex)
pub fn continue_traversal_from(&mut self, start: Graph::NodeIndex)
Resets the traversal to start from the given node without resetting the visited nodes.