Changeset 986:e997802b855c in lemon-0.x for src/demo/sub_graph_wrapper_demo.cc
- Timestamp:
- 11/13/04 13:53:28 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1376
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/demo/sub_graph_wrapper_demo.cc
r932 r986 38 38 readDimacs(std::cin, g, length, s, t); 39 39 40 cout << "edges with lengths (of form id, tail--length->head): " << endl;40 cout << "edges with lengths (of form id, source--length->target): " << endl; 41 41 for(EdgeIt e(g); e!=INVALID; ++e) 42 cout << " " << g.id(e) << ", " << g.id(g. tail(e)) << "--"43 << length[e] << "->" << g.id(g. head(e)) << endl;42 cout << " " << g.id(e) << ", " << g.id(g.source(e)) << "--" 43 << length[e] << "->" << g.id(g.target(e)) << endl; 44 44 45 45 cout << "s: " << g.id(s) << " t: " << g.id(t) << endl; … … 76 76 if (flow[e]) 77 77 cout << " " << g.id(e) << ", " 78 << g.id(g. tail(e)) << "--"79 << length[e] << "->" << g.id(g. head(e)) << endl;78 << g.id(g.source(e)) << "--" 79 << length[e] << "->" << g.id(g.target(e)) << endl; 80 80 }
Note: See TracChangeset
for help on using the changeset viewer.