resetXxx() changed to setXxx().
authoralpar
Thu, 05 Aug 2004 08:53:09 +0000
changeset 7578680351d0c28
parent 756 c54cf1e83039
child 758 49b1a30c4dc4
resetXxx() changed to setXxx().
src/hugo/max_flow.h
src/work/jacint/max_flow_bug.cc
src/work/jacint/max_flow_test.cc
     1.1 --- a/src/hugo/max_flow.h	Thu Aug 05 07:57:20 2004 +0000
     1.2 +++ b/src/hugo/max_flow.h	Thu Aug 05 08:53:09 2004 +0000
     1.3 @@ -23,9 +23,9 @@
     1.4    ///target node, the \e capacity of the edges and the \e starting \e
     1.5    ///flow value of the edges should be passed to the algorithm through the
     1.6    ///constructor. It is possible to change these quantities using the
     1.7 -  ///functions \ref resetSource, \ref resetTarget, \ref resetCap and
     1.8 -  ///\ref resetFlow. Before any subsequent runs of any algorithm of
     1.9 -  ///the class \ref resetFlow should be called. 
    1.10 +  ///functions \ref setSource, \ref setTarget, \ref setCap and
    1.11 +  ///\ref setFlow. Before any subsequent runs of any algorithm of
    1.12 +  ///the class \ref setFlow should be called. 
    1.13  
    1.14    ///After running an algorithm of the class, the actual flow value 
    1.15    ///can be obtained by calling \ref flowValue(). The minimum
    1.16 @@ -479,30 +479,30 @@
    1.17      template<typename CutMap>
    1.18      void minCut(CutMap& M) const { minMinCut(M); }
    1.19  
    1.20 -    ///Resets the source node to \c _s.
    1.21 +    ///Sets the source node to \c _s.
    1.22  
    1.23 -    ///Resets the source node to \c _s.
    1.24 +    ///Sets the source node to \c _s.
    1.25      /// 
    1.26 -    void resetSource(Node _s) { s=_s; status=AFTER_NOTHING; }
    1.27 +    void setSource(Node _s) { s=_s; status=AFTER_NOTHING; }
    1.28  
    1.29 -    ///Resets the target node to \c _t.
    1.30 +    ///Sets the target node to \c _t.
    1.31  
    1.32 -    ///Resets the target node to \c _t.
    1.33 +    ///Sets the target node to \c _t.
    1.34      ///
    1.35 -    void resetTarget(Node _t) { t=_t; status=AFTER_NOTHING; }
    1.36 +    void setTarget(Node _t) { t=_t; status=AFTER_NOTHING; }
    1.37  
    1.38 -    /// Resets the edge map of the capacities to _cap.
    1.39 +    /// Sets the edge map of the capacities to _cap.
    1.40  
    1.41 -    /// Resets the edge map of the capacities to _cap.
    1.42 +    /// Sets the edge map of the capacities to _cap.
    1.43      /// 
    1.44 -    void resetCap(const CapMap& _cap)
    1.45 +    void setCap(const CapMap& _cap)
    1.46      { capacity=&_cap; status=AFTER_NOTHING; }
    1.47  
    1.48 -    /// Resets the edge map of the flows to _flow.
    1.49 +    /// Sets the edge map of the flows to _flow.
    1.50  
    1.51 -    /// Resets the edge map of the flows to _flow.
    1.52 +    /// Sets the edge map of the flows to _flow.
    1.53      /// 
    1.54 -    void resetFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; }
    1.55 +    void setFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; }
    1.56  
    1.57  
    1.58    private:
     2.1 --- a/src/work/jacint/max_flow_bug.cc	Thu Aug 05 07:57:20 2004 +0000
     2.2 +++ b/src/work/jacint/max_flow_bug.cc	Thu Aug 05 08:53:09 2004 +0000
     2.3 @@ -76,9 +76,9 @@
     2.4    /*
     2.5  
     2.6    Graph::EdgeMap<int> flow2(G,0);
     2.7 -  std::cout << "Calling resetFlow() " << std::endl 
     2.8 +  std::cout << "Calling setFlow() " << std::endl 
     2.9  	    << ts << std::endl;
    2.10 -  max_flow_test.resetFlow(flow2);  
    2.11 +  max_flow_test.setFlow(flow2);  
    2.12    ts.reset();
    2.13    max_flow_test.preflow(max_flow_test.PRE_FLOW);
    2.14    std::cout << "Elapsed time of preflow(PRE_FLOW) starting from the zero flow: " << std::endl 
     3.1 --- a/src/work/jacint/max_flow_test.cc	Thu Aug 05 07:57:20 2004 +0000
     3.2 +++ b/src/work/jacint/max_flow_test.cc	Thu Aug 05 08:53:09 2004 +0000
     3.3 @@ -81,7 +81,7 @@
     3.4    Graph::EdgeMap<int> flow2(G,0);
     3.5    std::cout << "Calling resetFlow() " << std::endl 
     3.6  	    << ts << std::endl;
     3.7 -  max_flow_test.resetFlow(flow2);  
     3.8 +  max_flow_test.setFlow(flow2);  
     3.9    ts.reset();
    3.10    max_flow_test.preflow(max_flow_test.PRE_FLOW);
    3.11    std::cout << "Elapsed time of preflow(PRE_FLOW) starting from the zero flow: " << std::endl