boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; NormalEdge that = (NormalEdge)o; if (up != that.up) return false; if (down != that.down) return false; return true; }