Function rustworkx_core::dag_algo::traversal_directions

source ·
pub fn traversal_directions(reverse: bool) -> (Direction, Direction)
Expand description

Return a pair of petgraph::Direction values corresponding to the “forwards” and “backwards” direction of graph traversal, based on whether the graph is being traved forwards (following the edges) or backward (reversing along edges). The order of returns is (forwards, backwards).