# HG changeset patch # User ladanyi # Date 1176276880 0 # Node ID 6a567c0f1214cbff44adadfd52be2e0405a5ac87 # Parent 89cbf0a2ed57cc8c9841402486dcc8c1bf405f88 Added SimplePath::front(). diff -r 89cbf0a2ed57 -r 6a567c0f1214 lemon/path.h --- a/lemon/path.h Tue Apr 10 09:01:30 2007 +0000 +++ b/lemon/path.h Wed Apr 11 07:34:40 2007 +0000 @@ -341,6 +341,11 @@ return EdgeIt(*this, n); } + /// \brief Gives back the first edge of the path. + const Edge& front() const { + return data.front(); + } + /// \brief Gives back the last edge of the path. const Edge& back() const { return data.back();