6 #include <hugo/dimacs.h>
7 #include <bfs_dfs_misc.h>
8 #include <list_graph.h>
9 #include <hugo/graph_wrapper.h>
14 typedef ListGraph Graph;
16 readDimacs(std::cin, g);
18 std::list<Graph::Node> l;
20 std::cout << "Leaving order of dfs which is pretopological..." << std::endl;
21 for(std::list<Graph::Node>::const_iterator i=l.begin(); i!=l.end(); ++i) {
22 std::cout << *i << " ";
24 std::cout << std::endl;
28 typedef RevGraphWrapper<Graph> GW;
30 std::list<GW::Node> l;
32 std::cout << "Same in the revered oriented graph..." << std::endl;
33 for(std::list<GW::Node>::const_iterator i=l.begin(); i!=l.end(); ++i) {
34 std::cout << *i << " ";
36 std::cout << std::endl;