Changeset 931:9227ecd7b0bc in lemon-0.x for src/demo/sub_graph_wrapper_demo.cc
- Timestamp:
- 09/30/04 19:32:00 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1253
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/sub_graph_wrapper_demo.cc
r921 r931 15 15 #include <lemon/dimacs.h> 16 16 #include <lemon/preflow.h> 17 #include < lemon/tight_edge_filter_map.h>17 #include <tight_edge_filter_map.h> 18 18 19 19 using namespace lemon; … … 38 38 readDimacs(std::cin, g, length, s, t); 39 39 40 cout << "edges with lengths (of form tail--length->head): " << endl;40 cout << "edges with lengths (of form id, tail--length->head): " << endl; 41 41 for(EdgeIt e(g); e!=INVALID; ++e) 42 cout << " " << g.id( g.tail(e)) << "--"42 cout << " " << g.id(e) << ", " << g.id(g.tail(e)) << "--" 43 43 << length[e] << "->" << g.id(g.head(e)) << endl; 44 44 … … 68 68 preflow.run(); 69 69 70 cout << "maximum number of edge-disjoint shortest path: " 71 << preflow.flowValue() << endl; 70 72 cout << "edges of the maximum number of edge-disjoint shortest s-t paths: " 71 73 << endl; 72 74 for(EdgeIt e(g); e!=INVALID; ++e) 73 75 if (flow[e]) 74 cout << " " << g.id(g.tail(e)) << "--" 76 cout << " " << g.id(e) << ", " 77 << g.id(g.tail(e)) << "--" 75 78 << length[e] << "->" << g.id(g.head(e)) << endl; 76 77 return 0;78 79 }
Note: See TracChangeset
for help on using the changeset viewer.