[Lemon-commits] [lemon_svn] alpar: r1017 - in hugo/trunk/src: hugo work/jacint
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:42:44 CET 2006
Author: alpar
Date: Thu Aug 5 10:53:09 2004
New Revision: 1017
Modified:
hugo/trunk/src/hugo/max_flow.h
hugo/trunk/src/work/jacint/max_flow_bug.cc
hugo/trunk/src/work/jacint/max_flow_test.cc
Log:
resetXxx() changed to setXxx().
Modified: hugo/trunk/src/hugo/max_flow.h
==============================================================================
--- hugo/trunk/src/hugo/max_flow.h (original)
+++ hugo/trunk/src/hugo/max_flow.h Thu Aug 5 10:53:09 2004
@@ -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<typename CutMap>
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:
Modified: hugo/trunk/src/work/jacint/max_flow_bug.cc
==============================================================================
--- hugo/trunk/src/work/jacint/max_flow_bug.cc (original)
+++ hugo/trunk/src/work/jacint/max_flow_bug.cc Thu Aug 5 10:53:09 2004
@@ -76,9 +76,9 @@
/*
Graph::EdgeMap<int> 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
Modified: hugo/trunk/src/work/jacint/max_flow_test.cc
==============================================================================
--- hugo/trunk/src/work/jacint/max_flow_test.cc (original)
+++ hugo/trunk/src/work/jacint/max_flow_test.cc Thu Aug 5 10:53:09 2004
@@ -81,7 +81,7 @@
Graph::EdgeMap<int> 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
More information about the Lemon-commits
mailing list