Changeset 1794:79397d64f742 in lemon0.x
 Timestamp:
 11/14/05 19:55:19 (18 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@2335
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

demo/dim_to_lgf.cc
r1744 r1794 66 66 typedef Graph::EdgeIt EdgeIt; 67 67 typedef Graph::NodeIt NodeIt; 68 typedef Graph::EdgeMap< string> StringMap;68 typedef Graph::EdgeMap<double> DoubleMap; 69 69 70 70 std::string inputName; … … 160 160 Graph graph; 161 161 Node s, t; 162 StringMap cost(graph), capacity(graph);162 DoubleMap cost(graph), capacity(graph); 163 163 readDimacs(is, graph, capacity, s, t, cost); 164 164 GraphWriter<Graph>(os, graph). … … 171 171 Graph graph; 172 172 Node s, t; 173 StringMap capacity(graph);173 DoubleMap capacity(graph); 174 174 readDimacs(is, graph, capacity, s, t); 175 175 GraphWriter<Graph>(os, graph). … … 181 181 Graph graph; 182 182 Node s; 183 StringMap capacity(graph);183 DoubleMap capacity(graph); 184 184 readDimacs(is, graph, capacity, s); 185 185 GraphWriter<Graph>(os, graph). … … 189 189 } else if (typeName == "capacitated") { 190 190 Graph graph; 191 StringMap capacity(graph);191 DoubleMap capacity(graph); 192 192 readDimacs(is, graph, capacity); 193 193 GraphWriter<Graph>(os, graph).
Note: See TracChangeset
for help on using the changeset viewer.