COIN-OR::LEMON - Graph Library

Changeset 769:e746fb14e680 in lemon-1.2 for lemon/karp.h


Ignore:
Timestamp:
08/18/09 10:08:28 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add tolerance() functions for MMC classes (#179)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/karp.h

    r768 r769  
    277277      _cycle_path = &path;
    278278      return *this;
     279    }
     280
     281    /// \brief Set the tolerance used by the algorithm.
     282    ///
     283    /// This function sets the tolerance object used by the algorithm.
     284    ///
     285    /// \return <tt>(*this)</tt>
     286    Karp& tolerance(const Tolerance& tolerance) {
     287      _tolerance = tolerance;
     288      return *this;
     289    }
     290
     291    /// \brief Return a const reference to the tolerance.
     292    ///
     293    /// This function returns a const reference to the tolerance object
     294    /// used by the algorithm.
     295    const Tolerance& tolerance() const {
     296      return _tolerance;
    279297    }
    280298
Note: See TracChangeset for help on using the changeset viewer.