COIN-OR::LEMON - Graph Library

Changeset 914:aa8c9008b3de in lemon for lemon/karp.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/karp.h

    r891 r914  
    393393    /// \pre \ref run() or \ref findMinMean() must be called before
    394394    /// using this function.
    395     LargeValue cycleLength() const {
    396       return _cycle_length;
     395    Value cycleLength() const {
     396      return static_cast<Value>(_cycle_length);
    397397    }
    398398
Note: See TracChangeset for help on using the changeset viewer.