Changeset 2392:4bbeaf115cdb in lemon0.x
 Timestamp:
 03/05/07 18:10:58 (16 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@3223
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

demo/disjoint_paths_demo.cc
r2391 r2392 46 46 47 47 int main() { 48 cout << "This program calculates the number " <<49 " ofdisjoint paths in a graph" << endl;48 cout << "This program calculates the number " 49 "disjoint paths in a graph" << endl; 50 50 cout << "The graph is read from the disjoint_paths_demo.lgf file" << endl; 51 51 typedef SmartGraph Graph; … … 71 71 72 72 graphToEps(graph, "edge_disjoint_paths.eps"). 73 title("edge disjoint path").copyright("(C) 20032007 LEMON Project").drawArrows(). 73 title("edge disjoint paths").scaleToA4(). 74 copyright("(C) 20032007 LEMON Project").drawArrows(). 74 75 edgeColors(composeMap(functorMap(color), flow)). 75 coords(coords). autoNodeScale().run();76 coords(coords).run(); 76 77 77 78 … … 97 98 98 99 graphToEps(sgraph, "node_disjoint_paths.eps"). 99 title("node disjoint path").copyright("(C) 20032007 LEMON Project").drawArrows(). 100 title("node disjoint paths").scaleToA4(). 101 copyright("(C) 20032007 LEMON Project").drawArrows(). 100 102 edgeColors(composeMap(functorMap(color), sflow)). 101 103 coords(SGraph::combinedNodeMap(coords, 102 104 shiftMap(coords, 103 105 dim2::Point<double>(5, 0)))). 104 autoNodeScale().run();106 run(); 105 107 106 108 cout << "The paths are written into node_disjoint_paths.eps" << endl; 
lemon/graph_adaptor.h
r2391 r2392 2606 2606 /// get an edge map on the adapted graph. 2607 2607 template <typename GraphEdgeMap, typename GraphNodeMap> 2608 class CombinedEdgeMap 2609 : public MapBase<Edge, typename GraphEdgeMap::Value> { 2608 class CombinedEdgeMap { 2610 2609 public: 2611 typedef MapBase<Edge, typename GraphEdgeMap::Value> Parent; 2612 2613 typedef typename Parent::Key Key; 2614 typedef typename Parent::Value Value; 2615 2610 2611 typedef Edge Key; 2612 typedef typename GraphEdgeMap::Value Value; 2613 2616 2614 /// \brief Constructor 2617 2615 ///
Note: See TracChangeset
for help on using the changeset viewer.