Changeset 1394:f0c48d7fa73d in lemon-0.x for src/demo
- Timestamp:
- 04/27/05 12:44:58 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1851
- Location:
- src/demo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/lp_maxflow_demo.cc
r1387 r1394 76 76 77 77 GraphReader<ListGraph> reader(std::cin,g); 78 reader. addNode("source",s).addNode("target",t)79 . addEdgeMap("capacity",cap).run();78 reader.readNode("source",s).readNode("target",t) 79 .readEdgeMap("capacity",cap).run(); 80 80 81 81 // std::ifstream file("../test/preflow_"); -
src/demo/min_route.cc
r1358 r1394 70 70 CoordMap coord(graph); 71 71 XMap<CoordMap> xcoord = xMap(coord); 72 reader. addNodeMap("coordinates_x", xcoord);72 reader.readNodeMap("coordinates_x", xcoord); 73 73 YMap<CoordMap> ycoord = yMap(coord); 74 reader. addNodeMap("coordinates_y", ycoord);74 reader.readNodeMap("coordinates_y", ycoord); 75 75 76 76 LengthMap length(graph); 77 reader. addEdgeMap("length", length);77 reader.readEdgeMap("length", length); 78 78 79 79 Node source, target; 80 reader. addNode("source", source);81 reader. addNode("target", target);80 reader.readNode("source", source); 81 reader.readNode("target", target); 82 82 83 83 reader.run();
Note: See TracChangeset
for help on using the changeset viewer.