diff -r 164ca6938d09 -r 81e89e2b90d1 src/lemon/path.h --- a/src/lemon/path.h Thu Mar 31 13:29:05 2005 +0000 +++ b/src/lemon/path.h Thu Mar 31 13:30:27 2005 +0000 @@ -102,7 +102,7 @@ } /// Length of the path. - size_t length() const { return edges.size(); } + int length() const { return edges.size(); } /// Returns whether the path is empty. bool empty() const { return edges.empty(); } @@ -197,9 +197,7 @@ bool operator<(const EdgeIt& e) const { return idx= p->length() ) idx=-1; } + void validate() { if(idx >= p->length() ) idx=-1; } }; /** @@ -247,7 +245,7 @@ bool operator<(const NodeIt& e) const { return idx p->length() ) idx=-1; } + void validate() { if(idx > p->length() ) idx=-1; } }; friend class Builder;