lemon/path.h
changeset 2072 224d3781b00b
parent 1993 2115143eceea
child 2084 59769591eb60
equal deleted inserted replaced
5:b58077314f9c 6:bb6ec444f196
   226 
   226 
   227       ///Validity check
   227       ///Validity check
   228       bool valid() const { return idx!=-1; }
   228       bool valid() const { return idx!=-1; }
   229 
   229 
   230       ///Conversion to Graph::Node
   230       ///Conversion to Graph::Node
   231       operator const GraphNode& () const {
   231       operator GraphNode () const {
   232 	if(idx >= p->length())
   232 	if(idx >= p->length())
   233 	  return p->target();
   233 	  return p->target();
   234 	else if(idx >= 0)
   234 	else if(idx >= 0)
   235 	  return p->gr->source(p->edges[idx]);
   235 	  return p->gr->source(p->edges[idx]);
   236 	else
   236 	else