Changeset 386:9d1faab5e0f1 in lemon-main for tools
- Timestamp:
- 11/27/08 23:05:35 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dimacs-to-lgf.cc
r385 r386 124 124 DoubleArcMap lower(digraph), capacity(digraph), cost(digraph); 125 125 DoubleNodeMap supply(digraph); 126 readDimacs (is, digraph, lower, capacity, cost, supply);126 readDimacsMin(is, digraph, lower, capacity, cost, supply); 127 127 DigraphWriter<Digraph>(digraph, os). 128 128 nodeMap("supply", supply). … … 135 135 Node s, t; 136 136 DoubleArcMap capacity(digraph); 137 readDimacs (is, digraph, capacity, s, t);137 readDimacsMax(is, digraph, capacity, s, t); 138 138 DigraphWriter<Digraph>(digraph, os). 139 139 arcMap("capacity", capacity). … … 145 145 Node s; 146 146 DoubleArcMap capacity(digraph); 147 readDimacs (is, digraph, capacity, s);147 readDimacsSp(is, digraph, capacity, s); 148 148 DigraphWriter<Digraph>(digraph, os). 149 149 arcMap("capacity", capacity). … … 153 153 Digraph digraph; 154 154 DoubleArcMap capacity(digraph); 155 readDimacs (is, digraph, capacity);155 readDimacsMax(is, digraph, capacity); 156 156 DigraphWriter<Digraph>(digraph, os). 157 157 arcMap("capacity", capacity). … … 159 159 } else if (plain) { 160 160 Digraph digraph; 161 readDimacs (is, digraph);161 readDimacsMat(is, digraph); 162 162 DigraphWriter<Digraph>(digraph, os).run(); 163 163 } else {
Note: See TracChangeset
for help on using the changeset viewer.