1.1 --- a/lemon/network_simplex.h Thu Feb 21 13:06:33 2008 +0000
1.2 +++ b/lemon/network_simplex.h Mon Feb 25 12:35:06 2008 +0000
1.3 @@ -134,7 +134,7 @@
1.4 ReducedCostMap( const SGraph &gr,
1.5 const SCostMap &cost_map,
1.6 const SPotentialMap &pot_map ) :
1.7 - _gr(gr), _cost_map(cost_map), _pot_map(pm) {}
1.8 + _gr(gr), _cost_map(cost_map), _pot_map(pot_map) {}
1.9
1.10 ///\e
1.11 Cost operator[](const Edge &e) const {
1.12 @@ -419,12 +419,12 @@
1.13
1.14 private:
1.15
1.16 - // State constant for edges at their lower bounds.
1.17 - static const int STATE_LOWER = 1;
1.18 - // State constant for edges in the spanning tree.
1.19 - static const int STATE_TREE = 0;
1.20 - // State constant for edges at their upper bounds.
1.21 - static const int STATE_UPPER = -1;
1.22 + // State constants for edges
1.23 + enum EdgeStateEnum {
1.24 + STATE_UPPER = -1,
1.25 + STATE_TREE = 0,
1.26 + STATE_LOWER = 1
1.27 + };
1.28
1.29 // Constant for the combined pivot rule.
1.30 static const int COMBINED_PIVOT_MAX_DEG = 5;