COIN-OR::LEMON - Graph Library

Changeset 2623:90defb96ee61 in lemon-0.x for lemon/capacity_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/capacity_scaling.h

    r2620 r2623  
    256256                     const SupplyMap &supply ) :
    257257      _graph(graph), _lower(&lower), _capacity(graph), _cost(cost),
    258       _supply(graph), _flow(0), _local_flow(false),
    259       _potential(0), _local_potential(false),
    260       _res_cap(graph), _excess(graph), _pred(graph)
     258      _supply(graph), _flow(NULL), _local_flow(false),
     259      _potential(NULL), _local_potential(false),
     260      _res_cap(graph), _excess(graph), _pred(graph), _dijkstra(NULL)
    261261    {
    262262      // Removing non-zero lower bounds
     
    289289                     const SupplyMap &supply ) :
    290290      _graph(graph), _lower(NULL), _capacity(capacity), _cost(cost),
    291       _supply(supply), _flow(0), _local_flow(false),
    292       _potential(0), _local_potential(false),
    293       _res_cap(capacity), _excess(graph), _pred(graph)
     291      _supply(supply), _flow(NULL), _local_flow(false),
     292      _potential(NULL), _local_potential(false),
     293      _res_cap(capacity), _excess(graph), _pred(graph), _dijkstra(NULL)
    294294    {
    295295      // Checking the sum of supply values
     
    318318                     Supply flow_value ) :
    319319      _graph(graph), _lower(&lower), _capacity(graph), _cost(cost),
    320       _supply(graph), _flow(0), _local_flow(false),
    321       _potential(0), _local_potential(false),
    322       _res_cap(graph), _excess(graph), _pred(graph)
     320      _supply(graph), _flow(NULL), _local_flow(false),
     321      _potential(NULL), _local_potential(false),
     322      _res_cap(graph), _excess(graph), _pred(graph), _dijkstra(NULL)
    323323    {
    324324      // Removing non-zero lower bounds
     
    355355                     Supply flow_value ) :
    356356      _graph(graph), _lower(NULL), _capacity(capacity), _cost(cost),
    357       _supply(graph, 0), _flow(0), _local_flow(false),
    358       _potential(0), _local_potential(false),
    359       _res_cap(capacity), _excess(graph), _pred(graph)
     357      _supply(graph, 0), _flow(NULL), _local_flow(false),
     358      _potential(NULL), _local_potential(false),
     359      _res_cap(capacity), _excess(graph), _pred(graph), _dijkstra(NULL)
    360360    {
    361361      _supply[s] =  flow_value;
Note: See TracChangeset for help on using the changeset viewer.