equal
deleted
inserted
replaced
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 |