Changeset 2514:57143c09dc20 in lemon-0.x for demo/sub_graph_adaptor_demo.cc
- Timestamp:
- 11/17/07 21:58:11 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3379
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/sub_graph_adaptor_demo.cc
r2391 r2514 110 110 111 111 ConstMap<Edge, int> const_1_map(1); 112 Graph::EdgeMap<int> flow(g, 0);113 112 // Max flow between s and t in the graph of tight edges. 114 Preflow<SubGW, int, ConstMap<Edge, int>, Graph::EdgeMap<int> > 115 preflow(gw, s, t, const_1_map, flow); 113 Preflow<SubGW, ConstMap<Edge, int> > preflow(gw, const_1_map, s, t); 116 114 preflow.run(); 117 115 … … 121 119 << endl; 122 120 for(EdgeIt e(g); e!=INVALID; ++e) 123 if ( flow[e])121 if (preflow.flow(e) != 0) 124 122 cout << " " << g.id(e) << ", " 125 123 << g.id(g.source(e)) << "--"
Note: See TracChangeset
for help on using the changeset viewer.