lemon/adaptors.h
changeset 470 3c0d39b6388c
parent 469 d369e885d196
child 471 9d9990909fc8
     1.1 --- a/lemon/adaptors.h	Fri Dec 12 22:00:03 2008 +0100
     1.2 +++ b/lemon/adaptors.h	Fri Dec 12 22:09:29 2008 +0100
     1.3 @@ -2205,12 +2205,12 @@
     1.4      void first(Node& i) const { _graph->first(i); }
     1.5      void first(Arc& i) const { _graph->first(i); }
     1.6      void firstIn(Arc& i, const Node& n) const {
     1.7 -      bool d;
     1.8 +      bool d = true;
     1.9        _graph->firstInc(i, d, n);
    1.10        while (i != INVALID && d == (*_direction)[i]) _graph->nextInc(i, d);
    1.11      }
    1.12      void firstOut(Arc& i, const Node& n ) const {
    1.13 -      bool d;
    1.14 +      bool d = true;
    1.15        _graph->firstInc(i, d, n);
    1.16        while (i != INVALID && d != (*_direction)[i]) _graph->nextInc(i, d);
    1.17      }