COIN-OR::LEMON - Graph Library

Changeset 735:1f08e846df29 in lemon


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

Bug fix in Preflow and Circulation (#307)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/circulation.h

    r688 r735  
    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

    r688 r735  
    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.