COIN-OR::LEMON - Graph Library

Changeset 2623:90defb96ee61 in lemon-0.x for lemon/cost_scaling.h


Ignore:
Timestamp:
10/06/08 17:08:17 (11 years ago)
Author:
Peter Kovacs
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3508
Message:

Add missing pointer initializing in min cost flow classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/cost_scaling.h

    r2620 r2623  
    182182    bool _local_potential;
    183183
     184    // The residual cost map
     185    ResidualCostMap<LargeCostMap> _res_cost;
    184186    // The residual graph
    185187    ResGraph *_res_graph;
    186     // The residual cost map
    187     ResidualCostMap<LargeCostMap> _res_cost;
    188188    // The reduced cost map
    189189    ReducedCostMap *_red_cost;
     
    210210                 const SupplyMap &supply ) :
    211211      _graph(graph), _lower(&lower), _capacity(graph), _orig_cost(cost),
    212       _cost(graph), _supply(graph), _flow(0), _local_flow(false),
    213       _potential(0), _local_potential(false), _res_cost(_cost),
    214       _excess(graph, 0)
     212      _cost(graph), _supply(graph), _flow(NULL), _local_flow(false),
     213      _potential(NULL), _local_potential(false), _res_cost(_cost),
     214      _res_graph(NULL), _red_cost(NULL), _excess(graph, 0)
    215215    {
    216216      // Removing non-zero lower bounds
     
    242242                 const SupplyMap &supply ) :
    243243      _graph(graph), _lower(NULL), _capacity(capacity), _orig_cost(cost),
    244       _cost(graph), _supply(supply), _flow(0), _local_flow(false),
    245       _potential(0), _local_potential(false), _res_cost(_cost),
    246       _excess(graph, 0)
     244      _cost(graph), _supply(supply), _flow(NULL), _local_flow(false),
     245      _potential(NULL), _local_potential(false), _res_cost(_cost),
     246      _res_graph(NULL), _red_cost(NULL), _excess(graph, 0)
    247247    {
    248248      // Checking the sum of supply values
     
    271271                 Supply flow_value ) :
    272272      _graph(graph), _lower(&lower), _capacity(graph), _orig_cost(cost),
    273       _cost(graph), _supply(graph), _flow(0), _local_flow(false),
    274       _potential(0), _local_potential(false), _res_cost(_cost),
    275       _excess(graph, 0)
     273      _cost(graph), _supply(graph), _flow(NULL), _local_flow(false),
     274      _potential(NULL), _local_potential(false), _res_cost(_cost),
     275      _res_graph(NULL), _red_cost(NULL), _excess(graph, 0)
    276276    {
    277277      // Removing nonzero lower bounds
     
    307307                 Supply flow_value ) :
    308308      _graph(graph), _lower(NULL), _capacity(capacity), _orig_cost(cost),
    309       _cost(graph), _supply(graph, 0), _flow(0), _local_flow(false),
    310       _potential(0), _local_potential(false), _res_cost(_cost),
    311       _excess(graph, 0)
     309      _cost(graph), _supply(graph, 0), _flow(NULL), _local_flow(false),
     310      _potential(NULL), _local_potential(false), _res_cost(_cost),
     311      _res_graph(NULL), _red_cost(NULL), _excess(graph, 0)
    312312    {
    313313      _supply[s] =  flow_value;
Note: See TracChangeset for help on using the changeset viewer.