Changes in / [1175:afcd33be243f:1174:7c86f14b3bc5] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/dimacs.h
r1160 r1092 26 26 #include <lemon/maps.h> 27 27 #include <lemon/error.h> 28 29 28 /// \ingroup dimacs_group 30 29 /// \file … … 124 123 /// 125 124 /// If the file type was previously evaluated by dimacsType(), then 126 /// the descriptor struct should be given by the \c des cparameter.125 /// the descriptor struct should be given by the \c dest parameter. 127 126 template <typename Digraph, typename LowerMap, 128 127 typename CapacityMap, typename CostMap, … … 278 277 /// 279 278 /// If the file type was previously evaluated by dimacsType(), then 280 /// the descriptor struct should be given by the \c des cparameter.279 /// the descriptor struct should be given by the \c dest parameter. 281 280 template<typename Digraph, typename CapacityMap> 282 281 void readDimacsMax(std::istream& is, … … 305 304 /// 306 305 /// If the file type was previously evaluated by dimacsType(), then 307 /// the descriptor struct should be given by the \c des cparameter.306 /// the descriptor struct should be given by the \c dest parameter. 308 307 template<typename Digraph, typename LengthMap> 309 308 void readDimacsSp(std::istream& is, … … 336 335 /// 337 336 /// If the file type was previously evaluated by dimacsType(), then 338 /// the descriptor struct should be given by the \c des cparameter.337 /// the descriptor struct should be given by the \c dest parameter. 339 338 template<typename Digraph, typename CapacityMap> 340 339 void readDimacsCap(std::istream& is, … … 345 344 typename Digraph::Node u,v; 346 345 if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is); 347 if(desc.type!=DimacsDescriptor::MAX &&desc.type!=DimacsDescriptor::SP)346 if(desc.type!=DimacsDescriptor::MAX || desc.type!=DimacsDescriptor::SP) 348 347 throw FormatError("Problem type mismatch"); 349 348 _readDimacs(is, g, capacity, u, v, infty, desc); … … 376 375 /// 377 376 /// If the file type was previously evaluated by dimacsType(), then 378 /// the descriptor struct should be given by the \c des cparameter.377 /// the descriptor struct should be given by the \c dest parameter. 379 378 template<typename Graph> 380 379 void readDimacsMat(std::istream& is, Graph &g,
Note: See TracChangeset
for help on using the changeset viewer.