Changeset 842:a4bb28813570 in lemon-0.x for src/test
- Timestamp:
- 09/13/04 19:20:03 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1141
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/preflow_test.cc
r833 r842 58 58 typedef SmartGraph Graph; 59 59 60 typedef Graph::Node Node; 60 61 typedef Graph::NodeIt NodeIt; 61 62 typedef Graph::EdgeIt EdgeIt; … … 69 70 70 71 Graph G; 71 Node Its, t;72 Node s, t; 72 73 CapMap cap(G); 73 74 readDimacs(file, G, cap, s, t); … … 101 102 for(EdgeIt e(G); e!=INVALID; ++e) cap[e]=2*cap[e]; 102 103 preflow_test.setCap(cap); 103 preflow_test.setTarget(++t); //the max flow value remains 2*flow_value 104 105 NodeIt tmp_node(G,t); 106 ++tmp_node; 107 t=tmp_node; 108 109 preflow_test.setTarget(t); //the max flow value remains 2*flow_value 104 110 //warning: ++t must be a valid node. In preflow_graph, it is. 105 111
Note: See TracChangeset
for help on using the changeset viewer.