COIN-OR::LEMON - Graph Library

Changeset 2467:2025a571895e in lemon-0.x for lemon/bits


Ignore:
Timestamp:
08/28/07 16:00:42 (12 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3305
Message:

PathNodeIt?

PathWriter/Reader? structures
Distinict MapSet? readers and writers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/path_dump.h

    r2391 r2467  
    5555      RevEdgeIt(Invalid) : path(0), current(INVALID) {}
    5656      RevEdgeIt(const PredMapPath& _path)
    57         : path(&_path), current(_path.target) {}
     57        : path(&_path), current(_path.target) {
     58        if (path->predMap[current] == INVALID) current = INVALID;
     59      }
    5860
    5961      operator const typename Graph::Edge() const {
     
    127129      RevEdgeIt(Invalid) : path(0), current(INVALID) {}
    128130      RevEdgeIt(const PredMatrixMapPath& _path)
    129         : path(&_path), current(_path.target) {}
     131        : path(&_path), current(_path.target) {
     132        if (path->predMatrixMap(path->source, current) == INVALID)
     133          current = INVALID;
     134      }
    130135
    131136      operator const typename Graph::Edge() const {
Note: See TracChangeset for help on using the changeset viewer.