COIN-OR::LEMON - Graph Library

Changeset 1794:79397d64f742 in lemon-0.x for demo


Ignore:
Timestamp:
11/14/05 19:55:19 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2335
Message:

String->Double

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/dim_to_lgf.cc

    r1744 r1794  
    6666  typedef Graph::EdgeIt EdgeIt;
    6767  typedef Graph::NodeIt NodeIt;
    68   typedef Graph::EdgeMap<string> StringMap;
     68  typedef Graph::EdgeMap<double> DoubleMap;
    6969
    7070  std::string inputName;
     
    160160    Graph graph;
    161161    Node s, t;
    162     StringMap cost(graph), capacity(graph);
     162    DoubleMap cost(graph), capacity(graph);
    163163    readDimacs(is, graph, capacity, s, t, cost);
    164164    GraphWriter<Graph>(os, graph).
     
    171171    Graph graph;
    172172    Node s, t;
    173     StringMap capacity(graph);
     173    DoubleMap capacity(graph);
    174174    readDimacs(is, graph, capacity, s, t);
    175175    GraphWriter<Graph>(os, graph).
     
    181181    Graph graph;
    182182    Node s;
    183     StringMap capacity(graph);
     183    DoubleMap capacity(graph);
    184184    readDimacs(is, graph, capacity, s);
    185185    GraphWriter<Graph>(os, graph).
     
    189189  } else if (typeName == "capacitated") {
    190190    Graph graph;
    191     StringMap capacity(graph);
     191    DoubleMap capacity(graph);
    192192    readDimacs(is, graph, capacity);
    193193    GraphWriter<Graph>(os, graph).
Note: See TracChangeset for help on using the changeset viewer.