# HG changeset patch # User deba # Date 1173114658 0 # Node ID 4bbeaf115cdbc03843cefd9ff79ee52d14ca9835 # Parent 14a343be7a5a2bb782f39b8fe2efe3ca7d4bcde3 Bug whit Parent typedef in SplitGraphAdaptor::CombinedEdgeMap Fixing graph to eps parameters for demo diff -r 14a343be7a5a -r 4bbeaf115cdb demo/disjoint_paths_demo.cc --- a/demo/disjoint_paths_demo.cc Sat Mar 03 16:30:37 2007 +0000 +++ b/demo/disjoint_paths_demo.cc Mon Mar 05 17:10:58 2007 +0000 @@ -45,8 +45,8 @@ } int main() { - cout << "This program calculates the number " << - "of disjoint paths in a graph" << endl; + cout << "This program calculates the number " + "disjoint paths in a graph" << endl; cout << "The graph is read from the disjoint_paths_demo.lgf file" << endl; typedef SmartGraph Graph; @@ -70,9 +70,10 @@ cout << "Number of edge disjoint paths: " << preflow.flowValue() << endl; graphToEps(graph, "edge_disjoint_paths.eps"). - title("edge disjoint path").copyright("(C) 2003-2007 LEMON Project").drawArrows(). + title("edge disjoint paths").scaleToA4(). + copyright("(C) 2003-2007 LEMON Project").drawArrows(). edgeColors(composeMap(functorMap(color), flow)). - coords(coords).autoNodeScale().run(); + coords(coords).run(); cout << "The paths are written into edge_disjoint_paths.eps" << endl; @@ -96,12 +97,13 @@ graphToEps(sgraph, "node_disjoint_paths.eps"). - title("node disjoint path").copyright("(C) 2003-2007 LEMON Project").drawArrows(). + title("node disjoint paths").scaleToA4(). + copyright("(C) 2003-2007 LEMON Project").drawArrows(). edgeColors(composeMap(functorMap(color), sflow)). coords(SGraph::combinedNodeMap(coords, shiftMap(coords, dim2::Point(5, 0)))). - autoNodeScale().run(); + run(); cout << "The paths are written into node_disjoint_paths.eps" << endl; diff -r 14a343be7a5a -r 4bbeaf115cdb lemon/graph_adaptor.h --- a/lemon/graph_adaptor.h Sat Mar 03 16:30:37 2007 +0000 +++ b/lemon/graph_adaptor.h Mon Mar 05 17:10:58 2007 +0000 @@ -2605,14 +2605,12 @@ /// This class adapt an original graph EdgeMap and NodeMap to /// get an edge map on the adapted graph. template - class CombinedEdgeMap - : public MapBase { + class CombinedEdgeMap { public: - typedef MapBase Parent; - - typedef typename Parent::Key Key; - typedef typename Parent::Value Value; - + + typedef Edge Key; + typedef typename GraphEdgeMap::Value Value; + /// \brief Constructor /// /// Constructor.