jj_lib::graph

Function reverse_graph

Source
pub fn reverse_graph<N: Clone + Eq + Hash, E>(
    input: impl Iterator<Item = Result<GraphNode<N>, E>>,
) -> Result<Vec<GraphNode<N>>, E>
Expand description

Creates new graph in which nodes and edges are reversed.