Changeset 2392:4bbeaf115cdb in lemon-0.x for demo
- Timestamp:
- 03/05/07 18:10:58 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3223
- File:
-
- 1 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) 2003-2007 LEMON Project").drawArrows(). 73 title("edge disjoint paths").scaleToA4(). 74 copyright("(C) 2003-2007 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) 2003-2007 LEMON Project").drawArrows(). 100 title("node disjoint paths").scaleToA4(). 101 copyright("(C) 2003-2007 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;
Note: See TracChangeset
for help on using the changeset viewer.