COIN-OR::LEMON - Graph Library

Changeset 688:1f08e846df29 in lemon-1.2 for lemon


Ignore:
Timestamp:
08/18/09 10:24:31 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Children:
689:86c49553fea5, 748:4792459983d0
Phase:
public
Message:

Bug fix in Preflow and Circulation (#307)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/circulation.h

    r641 r688  
    454454    ///
    455455    /// Sets the tolerance used by algorithm.
    456     Circulation& tolerance(const Tolerance& tolerance) const {
     456    Circulation& tolerance(const Tolerance& tolerance) {
    457457      _tol = tolerance;
    458458      return *this;
     
    463463    /// Returns a const reference to the tolerance.
    464464    const Tolerance& tolerance() const {
    465       return tolerance;
     465      return _tol;
    466466    }
    467467
  • lemon/preflow.h

    r641 r688  
    375375    ///
    376376    /// Sets the tolerance used by algorithm.
    377     Preflow& tolerance(const Tolerance& tolerance) const {
     377    Preflow& tolerance(const Tolerance& tolerance) {
    378378      _tolerance = tolerance;
    379379      return *this;
     
    384384    /// Returns a const reference to the tolerance.
    385385    const Tolerance& tolerance() const {
    386       return tolerance;
     386      return _tolerance;
    387387    }
    388388
Note: See TracChangeset for help on using the changeset viewer.