COIN-OR::LEMON - Graph Library

Changeset 652:5232721b3f14 in lemon for tools


Ignore:
Timestamp:
03/25/09 15:58:44 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Rework the interface of NetworkSimplex? (#234)

The parameters of the problem can be set with separate functions
instead of different constructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/dimacs-solver.cc

    r649 r652  
    106106  if (report) std::cerr << "Read the file: " << ti << '\n';
    107107  ti.restart();
    108   NetworkSimplex< Digraph, Digraph::ArcMap<Value>, Digraph::ArcMap<Value>,
    109                   Digraph::ArcMap<Value>, Digraph::NodeMap<Value> >
    110     ns(g, lower, cap, cost, sup);
     108  NetworkSimplex<Digraph, Value> ns(g);
     109  ns.lowerMap(lower).capacityMap(cap).costMap(cost).supplyMap(sup);
    111110  if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n';
    112111  ti.restart();
Note: See TracChangeset for help on using the changeset viewer.