Changeset 757:8680351d0c28 in lemon-0.x for src/hugo
- Timestamp:
- 08/05/04 10:53:09 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1017
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.