COIN-OR::LEMON - Graph Library

Changeset 2579:691ce54544c5 in lemon-0.x for lemon/network_simplex.h


Ignore:
Timestamp:
02/25/08 13:35:06 (16 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3461
Message:

Bug fixes in min cost flow files.
Use enum type instead of static constants in NetworkSimplex? to avoid
linker errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/network_simplex.h

    r2575 r2579  
    135135                      const SCostMap &cost_map,
    136136                      const SPotentialMap &pot_map ) :
    137         _gr(gr), _cost_map(cost_map), _pot_map(pm) {}
     137        _gr(gr), _cost_map(cost_map), _pot_map(pot_map) {}
    138138
    139139      ///\e
     
    420420  private:
    421421
    422     // State constant for edges at their lower bounds.
    423     static const int STATE_LOWER =  1;
    424     // State constant for edges in the spanning tree.
    425     static const int STATE_TREE  =  0;
    426     // State constant for edges at their upper bounds.
    427     static const int STATE_UPPER = -1;
     422    // State constants for edges
     423    enum EdgeStateEnum {
     424      STATE_UPPER = -1,
     425      STATE_TREE  =  0,
     426      STATE_LOWER =  1
     427    };
    428428
    429429    // Constant for the combined pivot rule.
Note: See TracChangeset for help on using the changeset viewer.