1.1 --- a/lemon/bits/path_dump.h Tue Aug 28 13:58:54 2007 +0000
1.2 +++ b/lemon/bits/path_dump.h Tue Aug 28 14:00:42 2007 +0000
1.3 @@ -54,7 +54,9 @@
1.4 RevEdgeIt() {}
1.5 RevEdgeIt(Invalid) : path(0), current(INVALID) {}
1.6 RevEdgeIt(const PredMapPath& _path)
1.7 - : path(&_path), current(_path.target) {}
1.8 + : path(&_path), current(_path.target) {
1.9 + if (path->predMap[current] == INVALID) current = INVALID;
1.10 + }
1.11
1.12 operator const typename Graph::Edge() const {
1.13 return path->predMap[current];
1.14 @@ -126,7 +128,10 @@
1.15 RevEdgeIt() {}
1.16 RevEdgeIt(Invalid) : path(0), current(INVALID) {}
1.17 RevEdgeIt(const PredMatrixMapPath& _path)
1.18 - : path(&_path), current(_path.target) {}
1.19 + : path(&_path), current(_path.target) {
1.20 + if (path->predMatrixMap(path->source, current) == INVALID)
1.21 + current = INVALID;
1.22 + }
1.23
1.24 operator const typename Graph::Edge() const {
1.25 return path->predMatrixMap(path->source, current);