COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
11/18/04 15:37:22 (16 years ago)
Author:
marci
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1397
Message:

MergeNodeGraphWrapper?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/marci/merge_node_graph_wrapper_test.cc

    r921 r1007  
    99
    1010using namespace lemon;
     11
     12class Graph3 : ListGraph {
     13public:
     14  class Node : public ListGraph::Node { };
     15  class Edge { };
     16};
    1117
    1218int main() {
     
    3945    cout << nm[n] << endl;
    4046  }
     47
     48  gw.print();
     49
     50  {
     51//    typedef SmartGraph Graph1;
     52    typedef ListGraph Graph1;
     53    typedef ListGraph Graph2;
     54    Graph1 g;
     55    Graph2 h;
     56    typedef MergeNodeGraphWrapper<Graph1, Graph2> GW;
     57    GW gw(g, h);   
     58    gw.print();
     59  }
     60  {
     61//    typedef SmartGraph Graph1;
     62    typedef Graph3 Graph1;
     63    typedef ListGraph Graph2;
     64    Graph1 g;
     65    Graph2 h;
     66    typedef MergeNodeGraphWrapper<Graph1, Graph2> GW;
     67    GW gw(g, h);   
     68    gw.print();
     69  }
     70  {
     71//    typedef SmartGraph Graph1;
     72    typedef ListGraph Graph1;
     73    typedef Graph3 Graph2;
     74    Graph1 g;
     75    Graph2 h;
     76    typedef MergeNodeGraphWrapper<Graph1, Graph2> GW;
     77    GW gw(g, h);   
     78    gw.print();
     79  }
    4180}
Note: See TracChangeset for help on using the changeset viewer.