Changeset 386:9d1faab5e0f1 in lemon-1.2 for lemon
- Timestamp:
- 11/27/08 23:05:35 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/dimacs.h
r385 r386 55 55 typename CapacityMap, typename CostMap, 56 56 typename SupplyMap> 57 void readDimacs ( std::istream& is,57 void readDimacsMin( std::istream& is, 58 58 Digraph &g, 59 59 LowerMap& lower, … … 119 119 /// set to the source and the target nodes. 120 120 template<typename Digraph, typename CapacityMap> 121 void readDimacs (std::istream& is, Digraph &g, CapacityMap& capacity,121 void readDimacsMax(std::istream& is, Digraph &g, CapacityMap& capacity, 122 122 typename Digraph::Node &s, typename Digraph::Node &t) { 123 123 g.clear(); … … 182 182 /// source node. 183 183 template<typename Digraph, typename CapacityMap> 184 void readDimacs (std::istream& is, Digraph &g, CapacityMap& capacity,184 void readDimacsSp(std::istream& is, Digraph &g, CapacityMap& capacity, 185 185 typename Digraph::Node &s) { 186 readDimacs(is, g, capacity, s, s); 186 typename Digraph::Node t; 187 readDimacsMax(is, g, capacity, s, t); 187 188 } 188 189 … … 193 194 /// and the arc capacities are written to \c capacity. 194 195 template<typename Digraph, typename CapacityMap> 195 void readDimacs (std::istream& is, Digraph &g, CapacityMap& capacity) {196 typename Digraph::Node u ;197 readDimacs (is, g, capacity, u, u);196 void readDimacsMax(std::istream& is, Digraph &g, CapacityMap& capacity) { 197 typename Digraph::Node u,v; 198 readDimacsMax(is, g, capacity, u, v); 198 199 } 199 200 … … 208 209 /// At the beginning \c g is cleared by \c g.clear(). 209 210 template<typename Digraph> 210 void readDimacs (std::istream& is, Digraph &g) {211 typename Digraph::Node u ;211 void readDimacsMat(std::istream& is, Digraph &g) { 212 typename Digraph::Node u,v; 212 213 NullMap<typename Digraph::Arc, int> n; 213 readDimacs (is, g, n, u, u);214 readDimacsMax(is, g, n, u, v); 214 215 } 215 216 … … 223 224 /// \endcode 224 225 template<typename Digraph> 225 void writeDimacs (std::ostream& os, const Digraph &g) {226 void writeDimacsMat(std::ostream& os, const Digraph &g) { 226 227 typedef typename Digraph::NodeIt NodeIt; 227 228 typedef typename Digraph::ArcIt ArcIt;
Note: See TracChangeset
for help on using the changeset viewer.