COIN-OR::LEMON - Graph Library

Changeset 776:be48a648d28f in lemon


Ignore:
Timestamp:
09/25/09 11:58:34 (14 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Small improvements for NetworkSimplex? (#298)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/network_simplex.h

    r710 r776  
    162162    TEMPLATE_DIGRAPH_TYPEDEFS(GR);
    163163
    164     typedef std::vector<Arc> ArcVector;
    165     typedef std::vector<Node> NodeVector;
    166164    typedef std::vector<int> IntVector;
    167165    typedef std::vector<bool> BoolVector;
     
    686684      }
    687685     
    688       // Initialize maps
    689       for (int i = 0; i != _node_num; ++i) {
    690         _supply[i] = 0;
    691       }
    692       for (int i = 0; i != _arc_num; ++i) {
    693         _lower[i] = 0;
    694         _upper[i] = INF;
    695         _cost[i] = 1;
    696       }
    697       _have_lower = false;
    698       _stype = GEQ;
     686      // Reset parameters
     687      reset();
    699688    }
    700689
     
    769758    /// If neither this function nor \ref stSupply() is used before
    770759    /// calling \ref run(), the supply of each node will be set to zero.
    771     /// (It makes sense only if non-zero lower bounds are given.)
    772760    ///
    773761    /// \param map A node map storing the supply values.
     
    790778    /// If neither this function nor \ref supplyMap() is used before
    791779    /// calling \ref run(), the supply of each node will be set to zero.
    792     /// (It makes sense only if non-zero lower bounds are given.)
    793780    ///
    794781    /// Using this function has the same effect as using \ref supplyMap()
Note: See TracChangeset for help on using the changeset viewer.