Changeset 757:8680351d0c28 in lemon-0.x for src
- Timestamp:
- 08/05/04 10:53:09 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1017
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/hugo/max_flow.h
r749 r757 24 24 ///flow value of the edges should be passed to the algorithm through the 25 25 ///constructor. It is possible to change these quantities using the 26 ///functions \ref resetSource, \ref resetTarget, \ref resetCap and27 ///\ref resetFlow. Before any subsequent runs of any algorithm of28 ///the class \ref resetFlow should be called.26 ///functions \ref setSource, \ref setTarget, \ref setCap and 27 ///\ref setFlow. Before any subsequent runs of any algorithm of 28 ///the class \ref setFlow should be called. 29 29 30 30 ///After running an algorithm of the class, the actual flow value … … 480 480 void minCut(CutMap& M) const { minMinCut(M); } 481 481 482 /// Resets the source node to \c _s.483 484 /// Resets the source node to \c _s.482 ///Sets the source node to \c _s. 483 484 ///Sets the source node to \c _s. 485 485 /// 486 void resetSource(Node _s) { s=_s; status=AFTER_NOTHING; }487 488 /// Resets the target node to \c _t.489 490 /// Resets the target node to \c _t.486 void setSource(Node _s) { s=_s; status=AFTER_NOTHING; } 487 488 ///Sets the target node to \c _t. 489 490 ///Sets the target node to \c _t. 491 491 /// 492 void resetTarget(Node _t) { t=_t; status=AFTER_NOTHING; }493 494 /// Resets the edge map of the capacities to _cap.495 496 /// Resets the edge map of the capacities to _cap.492 void setTarget(Node _t) { t=_t; status=AFTER_NOTHING; } 493 494 /// Sets the edge map of the capacities to _cap. 495 496 /// Sets the edge map of the capacities to _cap. 497 497 /// 498 void resetCap(const CapMap& _cap)498 void setCap(const CapMap& _cap) 499 499 { capacity=&_cap; status=AFTER_NOTHING; } 500 500 501 /// Resets the edge map of the flows to _flow.502 503 /// Resets the edge map of the flows to _flow.501 /// Sets the edge map of the flows to _flow. 502 503 /// Sets the edge map of the flows to _flow. 504 504 /// 505 void resetFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; }505 void setFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; } 506 506 507 507 -
src/work/jacint/max_flow_bug.cc
r748 r757 77 77 78 78 Graph::EdgeMap<int> flow2(G,0); 79 std::cout << "Calling resetFlow() " << std::endl79 std::cout << "Calling setFlow() " << std::endl 80 80 << ts << std::endl; 81 max_flow_test. resetFlow(flow2);81 max_flow_test.setFlow(flow2); 82 82 ts.reset(); 83 83 max_flow_test.preflow(max_flow_test.PRE_FLOW); -
src/work/jacint/max_flow_test.cc
r715 r757 82 82 std::cout << "Calling resetFlow() " << std::endl 83 83 << ts << std::endl; 84 max_flow_test. resetFlow(flow2);84 max_flow_test.setFlow(flow2); 85 85 ts.reset(); 86 86 max_flow_test.preflow(max_flow_test.PRE_FLOW);
Note: See TracChangeset
for help on using the changeset viewer.