Added SimplePath::front().
authorladanyi
Wed, 11 Apr 2007 07:34:40 +0000
changeset 24196a567c0f1214
parent 2418 89cbf0a2ed57
child 2420 07c4f9bcb4d5
Added SimplePath::front().
lemon/path.h
     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();