# HG changeset patch # User deba # Date 1188310420 0 # Node ID 16615642ac7b5c0757d6b509db05b30c39701320 # Parent 2025a571895ece0faf370d4e63ff395606472151 More simple interface for PathDumper diff -r 2025a571895e -r 16615642ac7b lemon/concepts/path.h --- a/lemon/concepts/path.h Tue Aug 28 14:00:42 2007 +0000 +++ b/lemon/concepts/path.h Tue Aug 28 14:13:40 2007 +0000 @@ -144,19 +144,17 @@ int l = p.length(); int e = p.empty(); - typename _Path::EdgeIt id, ii(INVALID), i(p); + typename _Path::EdgeIt id, i(p); ++i; typename _Graph::Edge ed = i; - e = (i == ii); - e = (i != ii); - e = (i < ii); + e = (i == INVALID); + e = (i != INVALID); ignore_unused_variable_warning(l); ignore_unused_variable_warning(e); ignore_unused_variable_warning(id); - ignore_unused_variable_warning(ii); ignore_unused_variable_warning(ed); } _Path& p; @@ -171,19 +169,17 @@ int l = p.length(); int e = p.empty(); - typename _Path::RevEdgeIt id, ii(INVALID), i(p); + typename _Path::RevEdgeIt id, i(p); ++i; typename _Graph::Edge ed = i; - e = (i == ii); - e = (i != ii); - e = (i < ii); + e = (i == INVALID); + e = (i != INVALID); ignore_unused_variable_warning(l); ignore_unused_variable_warning(e); ignore_unused_variable_warning(id); - ignore_unused_variable_warning(ii); ignore_unused_variable_warning(ed); } _Path& p;