COIN-OR::LEMON - Graph Library

Changeset 1029:374a9519986b in lemon-main


Ignore:
Timestamp:
02/05/12 00:04:44 (13 years ago)
Author:
Daniel Poroszkai <poroszd@…>
Branch:
default
Phase:
public
Message:

Update LGF reader to work with typesafe bipartite node sets (#69)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lgf_reader.h

    r1026 r1029  
    29542954          }
    29552955
    2956           e = _graph.addEdge(source, target);
     2956          // It is checked that source is red and
     2957          // target is blue, so this should be safe:
     2958          e = _graph.addEdge(_graph.asRedNodeUnsafe(source),
     2959                             _graph.asBlueNodeUnsafe(target));
    29572960          if (label_index != -1)
    29582961            _edge_index.insert(std::make_pair(tokens[label_index], e));
Note: See TracChangeset for help on using the changeset viewer.