COIN-OR::LEMON - Graph Library

Changeset 561:6e0525ec5355 in lemon-1.2 for tools/dimacs-to-lgf.cc


Ignore:
Timestamp:
03/30/09 17:46:37 (16 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
562:538b3dd9a2c0, 1005:f37f0845cf32
Phase:
public
Message:

Accept negative values as unbounded capacity in dimacs readers (#243)
and some doc improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/dimacs-to-lgf.cc

    r440 r561  
    9797        DoubleArcMap lower(digraph), capacity(digraph), cost(digraph);
    9898        DoubleNodeMap supply(digraph);
    99         readDimacsMin(is, digraph, lower, capacity, cost, supply, desc);
     99        readDimacsMin(is, digraph, lower, capacity, cost, supply, 0, desc);
    100100        DigraphWriter<Digraph>(digraph, os).
    101101          nodeMap("supply", supply).
     
    112112        Node s, t;
    113113        DoubleArcMap capacity(digraph);
    114         readDimacsMax(is, digraph, capacity, s, t, desc);
     114        readDimacsMax(is, digraph, capacity, s, t, 0, desc);
    115115        DigraphWriter<Digraph>(digraph, os).
    116116          arcMap("capacity", capacity).
Note: See TracChangeset for help on using the changeset viewer.