diff -r 0a42883c8221 -r e746fb14e680 lemon/karp.h --- a/lemon/karp.h Wed Aug 12 09:45:15 2009 +0200 +++ b/lemon/karp.h Tue Aug 18 10:08:28 2009 +0200 @@ -278,6 +278,24 @@ return *this; } + /// \brief Set the tolerance used by the algorithm. + /// + /// This function sets the tolerance object used by the algorithm. + /// + /// \return (*this) + Karp& tolerance(const Tolerance& tolerance) { + _tolerance = tolerance; + return *this; + } + + /// \brief Return a const reference to the tolerance. + /// + /// This function returns a const reference to the tolerance object + /// used by the algorithm. + const Tolerance& tolerance() const { + return _tolerance; + } + /// \name Execution control /// The simplest way to execute the algorithm is to call the \ref run() /// function.\n