COIN-OR::LEMON - Graph Library

Ticket #306: 306-930ddeafdb20.patch

File 306-930ddeafdb20.patch, 962 bytes (added by Peter Kovacs, 14 years ago)
  • lemon/hao_orlin.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1267520587 -3600
    # Node ID 930ddeafdb209dd86cb111029bb344b18ac3b348
    # Parent  e77b621e6e7ecd5a325e1546bdfd51aa01c7b395
    Add tolerance() functions for HaoOrlin (#306)
    
    diff --git a/lemon/hao_orlin.h b/lemon/hao_orlin.h
    a b  
    165165      }
    166166    }
    167167
     168    /// \brief Set the tolerance used by the algorithm.
     169    ///
     170    /// This function sets the tolerance object used by the algorithm.
     171    /// \return <tt>(*this)</tt>
     172    HaoOrlin& tolerance(const Tolerance& tolerance) {
     173      _tolerance = tolerance;
     174      return *this;
     175    }
     176
     177    /// \brief Returns a const reference to the tolerance.
     178    ///
     179    /// This function returns a const reference to the tolerance object
     180    /// used by the algorithm.
     181    const Tolerance& tolerance() const {
     182      return _tolerance;
     183    }
     184
    168185  private:
    169186
    170187    void activate(const Node& i) {