COIN-OR::LEMON - Graph Library

Changeset 757:8680351d0c28 in lemon-0.x for src


Ignore:
Timestamp:
08/05/04 10:53:09 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1017
Message:

resetXxx() changed to setXxx().

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/max_flow.h

    r749 r757  
    2424  ///flow value of the edges should be passed to the algorithm through the
    2525  ///constructor. It is possible to change these quantities using the
    26   ///functions \ref resetSource, \ref resetTarget, \ref resetCap and
    27   ///\ref resetFlow. Before any subsequent runs of any algorithm of
    28   ///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.
    2929
    3030  ///After running an algorithm of the class, the actual flow value
     
    480480    void minCut(CutMap& M) const { minMinCut(M); }
    481481
    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.
    485485    ///
    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.
    491491    ///
    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.
    497497    ///
    498     void resetCap(const CapMap& _cap)
     498    void setCap(const CapMap& _cap)
    499499    { capacity=&_cap; status=AFTER_NOTHING; }
    500500
    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.
    504504    ///
    505     void resetFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; }
     505    void setFlow(FlowMap& _flow) { flow=&_flow; status=AFTER_NOTHING; }
    506506
    507507
  • src/work/jacint/max_flow_bug.cc

    r748 r757  
    7777
    7878  Graph::EdgeMap<int> flow2(G,0);
    79   std::cout << "Calling resetFlow() " << std::endl
     79  std::cout << "Calling setFlow() " << std::endl
    8080            << ts << std::endl;
    81   max_flow_test.resetFlow(flow2); 
     81  max_flow_test.setFlow(flow2); 
    8282  ts.reset();
    8383  max_flow_test.preflow(max_flow_test.PRE_FLOW);
  • src/work/jacint/max_flow_test.cc

    r715 r757  
    8282  std::cout << "Calling resetFlow() " << std::endl
    8383            << ts << std::endl;
    84   max_flow_test.resetFlow(flow2); 
     84  max_flow_test.setFlow(flow2); 
    8585  ts.reset();
    8686  max_flow_test.preflow(max_flow_test.PRE_FLOW);
Note: See TracChangeset for help on using the changeset viewer.