COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/merge_node_graph_wrapper_test.cc @ 915:751ed145bdae

Last change on this file since 915:751ed145bdae was 915:751ed145bdae, checked in by marci, 16 years ago

beginning of a modular, generic merge_graph_wrapper...

File size: 472 bytes
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
7using std::cout;
8using std::endl;
9
10using namespace hugo;
11
12int 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.