# HG changeset patch # User alpar # Date 1091695989 0 # Node ID 8680351d0c28f5deb6f0b55f51c12d98e1a3af07 # Parent c54cf1e83039acc0911b8fb75b70f5aa27dc3114 resetXxx() changed to setXxx(). diff -r c54cf1e83039 -r 8680351d0c28 src/hugo/max_flow.h --- a/src/hugo/max_flow.h Thu Aug 05 07:57:20 2004 +0000 +++ b/src/hugo/max_flow.h Thu Aug 05 08:53:09 2004 +0000 @@ -23,9 +23,9 @@ ///target node, the \e capacity of the edges and the \e starting \e ///flow value of the edges should be passed to the algorithm through the ///constructor. It is possible to change these quantities using the - ///functions \ref resetSource, \ref resetTarget, \ref resetCap and - ///\ref resetFlow. Before any subsequent runs of any algorithm of - ///the class \ref resetFlow should be called. + ///functions \ref setSource, \ref setTarget, \ref setCap and + ///\ref setFlow. Before any subsequent runs of any algorithm of + ///the class \ref setFlow should be called. ///After running an algorithm of the class, the actual flow value ///can be obtained by calling \ref flowValue(). The minimum @@ -479,30 +479,30 @@ template void minCut(CutMap& M) const { minMinCut(M); } - ///Resets the source node to \c _s. + ///Sets the source node to \c _s. - ///Resets the source node to \c _s. + ///Sets the source node to \c _s. /// - void resetSource(Node _s) { s=_s; status=AFTER_NOTHING; } + void setSource(Node _s) { s=_s; status=AFTER_NOTHING; } - ///Resets the target node to \c _t. + ///Sets the target node to \c _t. - ///Resets the target node to \c _t. + ///Sets the target node to \c _t. /// - void resetTarget(Node _t) { t=_t; status=AFTER_NOTHING; } + void setTarget(Node _t) { t=_t; status=AFTER_NOTHING; } - /// Resets the edge map of the capacities to _cap. + /// Sets the edge map of the capacities to _cap. - /// Resets the edge map of the capacities to _cap. + /// Sets the edge map of the capacities to _cap. /// - void resetCap(const CapMap& _cap) + void setCap(const CapMap& _cap) { capacity=&_cap; status=AFTER_NOTHING; } - /// Resets the edge map of the flows to _flow. + /// Sets the edge map of the flows to _flow. - /// Resets the edge map of the flows to _flow. + /// Sets the edge map of the flows to _flow. /// - void resetFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; } + void setFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; } private: diff -r c54cf1e83039 -r 8680351d0c28 src/work/jacint/max_flow_bug.cc --- a/src/work/jacint/max_flow_bug.cc Thu Aug 05 07:57:20 2004 +0000 +++ b/src/work/jacint/max_flow_bug.cc Thu Aug 05 08:53:09 2004 +0000 @@ -76,9 +76,9 @@ /* Graph::EdgeMap flow2(G,0); - std::cout << "Calling resetFlow() " << std::endl + std::cout << "Calling setFlow() " << std::endl << ts << std::endl; - max_flow_test.resetFlow(flow2); + max_flow_test.setFlow(flow2); ts.reset(); max_flow_test.preflow(max_flow_test.PRE_FLOW); std::cout << "Elapsed time of preflow(PRE_FLOW) starting from the zero flow: " << std::endl diff -r c54cf1e83039 -r 8680351d0c28 src/work/jacint/max_flow_test.cc --- a/src/work/jacint/max_flow_test.cc Thu Aug 05 07:57:20 2004 +0000 +++ b/src/work/jacint/max_flow_test.cc Thu Aug 05 08:53:09 2004 +0000 @@ -81,7 +81,7 @@ Graph::EdgeMap flow2(G,0); std::cout << "Calling resetFlow() " << std::endl << ts << std::endl; - max_flow_test.resetFlow(flow2); + max_flow_test.setFlow(flow2); ts.reset(); max_flow_test.preflow(max_flow_test.PRE_FLOW); std::cout << "Elapsed time of preflow(PRE_FLOW) starting from the zero flow: " << std::endl