public int CompareTo(Edge other) { var c = V0.CompareTo(other.V0); if (c != 0) { return(c); } return(V1.CompareTo(other.V1)); }