COIN-OR::LEMON - Graph Library

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

    r2620 r2623  
    169169                    const SupplyMap &supply ) :
    170170      _graph(graph), _lower(&lower), _capacity(graph), _cost(cost),
    171       _supply(graph), _flow(0), _local_flow(false),
    172       _potential(0), _local_potential(false), _res_cost(_cost)
     171      _supply(graph), _flow(NULL), _local_flow(false),
     172      _potential(NULL), _local_potential(false), _res_graph(NULL),
     173      _res_cost(_cost)
    173174    {
    174175      // Removing non-zero lower bounds
     
    199200                    const SupplyMap &supply ) :
    200201      _graph(graph), _lower(NULL), _capacity(capacity), _cost(cost),
    201       _supply(supply), _flow(0), _local_flow(false),
    202       _potential(0), _local_potential(false), _res_cost(_cost)
     202      _supply(supply), _flow(NULL), _local_flow(false),
     203      _potential(NULL), _local_potential(false), _res_graph(NULL),
     204      _res_cost(_cost)
    203205    {
    204206      // Checking the sum of supply values
     
    227229                    Supply flow_value ) :
    228230      _graph(graph), _lower(&lower), _capacity(graph), _cost(cost),
    229       _supply(graph), _flow(0), _local_flow(false),
    230       _potential(0), _local_potential(false), _res_cost(_cost)
     231      _supply(graph), _flow(NULL), _local_flow(false),
     232      _potential(NULL), _local_potential(false), _res_graph(NULL),
     233      _res_cost(_cost)
    231234    {
    232235      // Removing non-zero lower bounds
     
    262265                    Supply flow_value ) :
    263266      _graph(graph), _lower(NULL), _capacity(capacity), _cost(cost),
    264       _supply(graph, 0), _flow(0), _local_flow(false),
    265       _potential(0), _local_potential(false), _res_cost(_cost)
     267      _supply(graph, 0), _flow(NULL), _local_flow(false),
     268      _potential(NULL), _local_potential(false), _res_graph(NULL),
     269      _res_cost(_cost)
    266270    {
    267271      _supply[s] =  flow_value;
Note: See TracChangeset for help on using the changeset viewer.