Line | |
---|
1 | #include <iostream> |
---|
2 | |
---|
3 | #include <hugo/list_graph.h> |
---|
4 | #include <hugo/smart_graph.h> |
---|
5 | #include <merge_node_graph_wrapper.h> |
---|
6 | |
---|
7 | using std::cout; |
---|
8 | using std::endl; |
---|
9 | |
---|
10 | using namespace hugo; |
---|
11 | |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.