# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1504882923 -7200
# Node ID f37f0845cf3238988e8f635b32f3d173cd957f0f
# Parent 6e0525ec5355243555def854496159f61034a1ae
Bug fix in DIMACS reader (#607)
diff --git a/lemon/dimacs.h b/lemon/dimacs.h
a
|
b
|
|
339 | 339 | DimacsDescriptor desc=DimacsDescriptor()) { |
340 | 340 | typename Digraph::Node u,v; |
341 | 341 | if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is); |
342 | | if(desc.type!=DimacsDescriptor::MAX || desc.type!=DimacsDescriptor::SP) |
| 342 | if(desc.type!=DimacsDescriptor::MAX && desc.type!=DimacsDescriptor::SP) |
343 | 343 | throw FormatError("Problem type mismatch"); |
344 | 344 | _readDimacs(is, g, capacity, u, v, infty, desc); |
345 | 345 | } |