public bool EqualEdges(Edge e) { return ((e.getLeft() == getLeft() && e.getRight() == getRight()) || (e.getLeft() == getRight() && e.getRight() == getLeft())); }