equal
deleted
inserted
replaced
838 |
838 |
839 int id; |
839 int id; |
840 explicit Arc(int pid) { id = pid;} |
840 explicit Arc(int pid) { id = pid;} |
841 |
841 |
842 public: |
842 public: |
843 operator Edge() const { |
843 operator Edge() const { |
844 return id != -1 ? edgeFromId(id / 2) : INVALID; |
844 return id != -1 ? edgeFromId(id / 2) : INVALID; |
845 } |
845 } |
846 |
846 |
847 Arc() {} |
847 Arc() {} |
848 Arc (Invalid) { id = -1; } |
848 Arc (Invalid) { id = -1; } |
849 bool operator==(const Arc& arc) const {return id == arc.id;} |
849 bool operator==(const Arc& arc) const {return id == arc.id;} |