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