src/work/marci/merge_node_graph_wrapper_test.cc
author marci
Tue, 28 Sep 2004 13:45:39 +0000
changeset 915 751ed145bdae
child 917 ffb8f0cbcb57
permissions -rw-r--r--
beginning of a modular, generic merge_graph_wrapper...
     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 }