Bug fix in DIMACS reader (#607)
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 08 Sep 2017 17:02:03 +0200
changeset 1156f37f0845cf32
parent 561 6e0525ec5355
child 1157 332627dd249e
Bug fix in DIMACS reader (#607)
lemon/dimacs.h
     1.1 --- a/lemon/dimacs.h	Mon Mar 30 16:46:37 2009 +0100
     1.2 +++ b/lemon/dimacs.h	Fri Sep 08 17:02:03 2017 +0200
     1.3 @@ -339,7 +339,7 @@
     1.4                       DimacsDescriptor desc=DimacsDescriptor()) {
     1.5      typename Digraph::Node u,v;
     1.6      if(desc.type==DimacsDescriptor::NONE) desc=dimacsType(is);
     1.7 -    if(desc.type!=DimacsDescriptor::MAX || desc.type!=DimacsDescriptor::SP)
     1.8 +    if(desc.type!=DimacsDescriptor::MAX && desc.type!=DimacsDescriptor::SP)
     1.9        throw FormatError("Problem type mismatch");
    1.10      _readDimacs(is, g, capacity, u, v, infty, desc);
    1.11    }