COIN-OR::LEMON - Graph Library

Changeset 2612:3d65053d01a3 in lemon-0.x


Ignore:
Timestamp:
06/10/08 13:36:17 (10 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3497
Message:

Bug fix initialization
The std::numeric_limits<double>::min() means the smallest positive number,
and not the smallest number in the whole range of double.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/max_matching.h

    r2553 r2612  
    28542854      int index = 0;
    28552855      for (NodeIt n(_ugraph); n != INVALID; ++n) {
    2856         Value max = std::numeric_limits<Value>::min();
     2856        Value max = - std::numeric_limits<Value>::max();
    28572857        for (OutEdgeIt e(_ugraph, n); e != INVALID; ++e) {
    28582858          if (_ugraph.target(e) == n) continue;
Note: See TracChangeset for help on using the changeset viewer.