COIN-OR::LEMON - Graph Library

Changeset 914:aa8c9008b3de in lemon for lemon/hartmann_orlin.h


Ignore:
Timestamp:
02/26/10 23:53:09 (14 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Better return type for cycleLength() functions (#179)
in the min mean cycle algorithms.

The original Value type is used instead of the LargeValue? type,
which is introduced for internal computations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/hartmann_orlin.h

    r891 r914  
    406406    /// \pre \ref run() or \ref findMinMean() must be called before
    407407    /// using this function.
    408     LargeValue cycleLength() const {
    409       return _best_length;
     408    Value cycleLength() const {
     409      return static_cast<Value>(_best_length);
    410410    }
    411411
Note: See TracChangeset for help on using the changeset viewer.