For checking if an Edge contains the same vertices as other.
other
bool equalToEdge(Edge other) { return equalToVertices(other.a, other.b); }