author | marci |
Tue, 28 Sep 2004 13:45:39 +0000 | |
changeset 915 | 751ed145bdae |
child 917 | ffb8f0cbcb57 |
permissions | -rw-r--r-- |
1 #include <iostream>
3 #include <hugo/list_graph.h>
4 #include <hugo/smart_graph.h>
5 #include <merge_node_graph_wrapper.h>
7 using std::cout;
8 using std::endl;
10 using namespace hugo;
12 int main() {
13 SmartGraph g;
14 ListGraph h;
15 typedef MergeNodeGraphWrapper<SmartGraph, ListGraph> GW;
16 GW gw(g, h);
17 g.addNode();
18 g.addNode();
19 g.addNode();
20 h.addNode();
21 h.addNode();
22 //GW::NodeIt n(gw)
23 for (GW::NodeIt n(gw); n!=INVALID; ++n) {
24 cout << gw.id(n) << endl;
25 }
26 }