The new for macros are: h_for, h_for_inc, h_for_glob, h_for_inc_glob.
7 #include <list_graph.h>
15 typedef ListGraph::Node Node;
16 typedef ListGraph::Edge Edge;
17 typedef ListGraph::NodeIt NodeIt;
18 typedef ListGraph::EdgeIt EdgeIt;
29 G.addEdge(v0, v1);G.addEdge(v0, v1);G.addEdge(v0, v1);
31 G.addEdge(v0, v3);G.addEdge(v0, v3);
32 G.addEdge(v1, v2);G.addEdge(v1, v2);
37 G.addEdge(v1, v0);G.addEdge(v1, v0);G.addEdge(v1, v0);
39 G.addEdge(v3, v0);G.addEdge(v3, v0);
40 G.addEdge(v2, v1);G.addEdge(v2, v1);
46 vector<Node> ma_order;
47 MAOrder<ListGraph> mao(G,ma_order);
49 vector<Node>::iterator i;
50 for (i = ma_order.begin(); i!=ma_order.end(); ++i) {
54 cout << v0 << " " << v1 << " " << v2 << " " << v3 << " " << v4 << " "