COIN-OR::LEMON - Graph Library

Changeset 1158:f37f0845cf32 in lemon-main


Ignore:
Timestamp:
09/08/17 17:02:03 (7 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Bug fix in DIMACS reader (#607)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/dimacs.h

    r561 r1158  
    340340    typename Digraph::Node u,v;
    341341    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)
    343343      throw FormatError("Problem type mismatch");
    344344    _readDimacs(is, g, capacity, u, v, infty, desc);
Note: See TracChangeset for help on using the changeset viewer.