tools/dimacs-to-lgf.cc
changeset 830 ef88c0a30f85
parent 608 6e0525ec5355
child 1397 d7e25df22e88
     1.1 --- a/tools/dimacs-to-lgf.cc	Mon Jan 12 23:11:39 2009 +0100
     1.2 +++ b/tools/dimacs-to-lgf.cc	Thu Nov 05 15:48:01 2009 +0100
     1.3 @@ -24,11 +24,10 @@
     1.4  /// (LGF).
     1.5  ///
     1.6  /// See
     1.7 -/// \verbatim
     1.8 -///  dimacs-to-lgf --help
     1.9 -/// \endverbatim
    1.10 -/// for more info on usage.
    1.11 -///
    1.12 +/// \code
    1.13 +///   dimacs-to-lgf --help
    1.14 +/// \endcode
    1.15 +/// for more info on the usage.
    1.16  
    1.17  #include <iostream>
    1.18  #include <fstream>
    1.19 @@ -96,7 +95,7 @@
    1.20          Digraph digraph;
    1.21          DoubleArcMap lower(digraph), capacity(digraph), cost(digraph);
    1.22          DoubleNodeMap supply(digraph);
    1.23 -        readDimacsMin(is, digraph, lower, capacity, cost, supply, desc);
    1.24 +        readDimacsMin(is, digraph, lower, capacity, cost, supply, 0, desc);
    1.25          DigraphWriter<Digraph>(digraph, os).
    1.26            nodeMap("supply", supply).
    1.27            arcMap("lower", lower).
    1.28 @@ -111,7 +110,7 @@
    1.29          Digraph digraph;
    1.30          Node s, t;
    1.31          DoubleArcMap capacity(digraph);
    1.32 -        readDimacsMax(is, digraph, capacity, s, t, desc);
    1.33 +        readDimacsMax(is, digraph, capacity, s, t, 0, desc);
    1.34          DigraphWriter<Digraph>(digraph, os).
    1.35            arcMap("capacity", capacity).
    1.36            node("source", s).