COIN-OR::LEMON - Graph Library

Changeset 1005:f37f0845cf32 in lemon-1.2


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 r1005  
    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.