template<class
Graph>
class util::UndirectedAdjacencyListsOfDirectedGraph< Graph >
This can be used to view a directed graph (that supports reverse arcs) from graph.h as un undirected graph: operator[](node) returns a pseudo-container that iterates over all nodes adjacent to "node" (from outgoing or incoming arcs). CAVEAT: Self-arcs (aka loops) will appear twice.
Example: ReverseArcsStaticGraph<> dgraph; ... UndirectedAdjacencyListsOfDirectedGraph<decltype(dgraph)> ugraph(dgraph); for (int neighbor_of_node_42 : ugraph[42]) { ... }
Definition at line 103 of file util.h.