equal
deleted
inserted
replaced
462 |
462 |
463 int _id; |
463 int _id; |
464 explicit Arc(int id) { _id = id;} |
464 explicit Arc(int id) { _id = id;} |
465 |
465 |
466 public: |
466 public: |
467 operator Edge() const { |
467 operator Edge() const { |
468 return _id != -1 ? edgeFromId(_id / 2) : INVALID; |
468 return _id != -1 ? edgeFromId(_id / 2) : INVALID; |
469 } |
469 } |
470 |
470 |
471 Arc() {} |
471 Arc() {} |
472 Arc (Invalid) { _id = -1; } |
472 Arc (Invalid) { _id = -1; } |
473 bool operator==(const Arc& arc) const {return _id == arc._id;} |
473 bool operator==(const Arc& arc) const {return _id == arc._id;} |