diff -r aa8c2f05b9ab -r a7d5fe18d8f9 src/work/marci/merge_node_graph_wrapper_test.cc --- a/src/work/marci/merge_node_graph_wrapper_test.cc Thu Nov 18 10:17:19 2004 +0000 +++ b/src/work/marci/merge_node_graph_wrapper_test.cc Thu Nov 18 14:37:22 2004 +0000 @@ -9,6 +9,12 @@ using namespace lemon; +class Graph3 : ListGraph { +public: + class Node : public ListGraph::Node { }; + class Edge { }; +}; + int main() { typedef SmartGraph Graph1; typedef ListGraph Graph2; @@ -38,4 +44,37 @@ for (Graph2::NodeIt n(h); n!=INVALID; ++n) { cout << nm[n] << endl; } + + gw.print(); + + { +// typedef SmartGraph Graph1; + typedef ListGraph Graph1; + typedef ListGraph Graph2; + Graph1 g; + Graph2 h; + typedef MergeNodeGraphWrapper GW; + GW gw(g, h); + gw.print(); + } + { +// typedef SmartGraph Graph1; + typedef Graph3 Graph1; + typedef ListGraph Graph2; + Graph1 g; + Graph2 h; + typedef MergeNodeGraphWrapper GW; + GW gw(g, h); + gw.print(); + } + { +// typedef SmartGraph Graph1; + typedef ListGraph Graph1; + typedef Graph3 Graph2; + Graph1 g; + Graph2 h; + typedef MergeNodeGraphWrapper GW; + GW gw(g, h); + gw.print(); + } }