That's what I wanted.
6 #include <hugo/dimacs.h>
7 #include <bfs_dfs_misc.h>
8 #include <list_graph.h>
9 #include <hugo/graph_wrapper.h>
10 #include <hugo/maps.h>
15 typedef ListGraph Graph;
17 readDimacs(std::cin, g);
19 std::list<Graph::Node> l;
20 NullMap<Graph::Node, Graph::Edge> pred;
22 std::cout << "Leaving order of dfs which is pretopological..." << std::endl;
23 for(std::list<Graph::Node>::const_iterator i=l.begin(); i!=l.end(); ++i) {
24 std::cout << *i << " ";
26 std::cout << std::endl;
30 typedef RevGraphWrapper<Graph> GW;
32 std::list<GW::Node> l;
33 NullMap<GW::Node, GW::Edge> pred;
35 std::cout << "Same in the revered oriented graph..." << std::endl;
36 for(std::list<GW::Node>::const_iterator i=l.begin(); i!=l.end(); ++i) {
37 std::cout << *i << " ";
39 std::cout << std::endl;