Changeset 238:79643f6e8c52 in lemon-main
- Timestamp:
- 07/29/08 13:58:03 (16 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- lemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/list_graph.h
r234 r238 843 843 844 844 public: 845 operator Edge() const { return edgeFromId(id / 2); } 845 operator Edge() const { 846 return id != -1 ? edgeFromId(id / 2) : INVALID; 847 } 846 848 847 849 Arc() {} -
lemon/smart_graph.h
r220 r238 466 466 467 467 public: 468 operator Edge() const { return edgeFromId(_id / 2); } 468 operator Edge() const { 469 return _id != -1 ? edgeFromId(_id / 2) : INVALID; 470 } 469 471 470 472 Arc() {}
Note: See TracChangeset
for help on using the changeset viewer.