pub fn reverse_graph<N, ID: Clone + Eq + Hash, E>(
input: impl Iterator<Item = Result<GraphNode<N, ID>, E>>,
as_id: impl Fn(&N) -> &ID,
) -> Result<Vec<GraphNode<N, ID>>, E>
Expand description
Creates new graph in which nodes and edges are reversed.