COIN-OR::LEMON - Graph Library

Ignore:
Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/circulation.h

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

    r735 r688  
    375375    ///
    376376    /// Sets the tolerance used by algorithm.
    377     Preflow& tolerance(const Tolerance& tolerance) {
     377    Preflow& tolerance(const Tolerance& tolerance) const {
    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.