lemon/path.h
changeset 2419 6a567c0f1214
parent 2391 14a343be7a5a
child 2523 ceb7f3c704b7
     1.1 --- a/lemon/path.h	Tue Apr 10 09:01:30 2007 +0000
     1.2 +++ b/lemon/path.h	Wed Apr 11 07:34:40 2007 +0000
     1.3 @@ -341,6 +341,11 @@
     1.4        return EdgeIt(*this, n);
     1.5      }
     1.6  
     1.7 +    /// \brief Gives back the first edge of the path.
     1.8 +    const Edge& front() const {
     1.9 +      return data.front();
    1.10 +    }
    1.11 +
    1.12      /// \brief Gives back the last edge of the path.
    1.13      const Edge& back() const {
    1.14        return data.back();