Edge other = (Edge) o; int cmp; cmp = source.compareTo(other.source); if (cmp != 0) return cmp; cmp = dest.compareTo(other.dest); if (cmp != 0) return cmp; return dupCount - other.dupCount; }
Edge other = (Edge) o; int cmp = source.compareTo(other.source); if (cmp != 0) return cmp; return dest.compareTo(other.dest); }
    public int compareTo(Object o) {	// Lexicographically compare (source,dest) pair.	// Use dupCount as tie-breaker.	Edge other = (Edge) o;	int cmp;	cmp = source.compareTo(other.source);	if (cmp != 0)	    return cmp;	cmp = dest.compareTo(other.dest);	if (cmp != 0)	    return cmp;	return dupCount - other.dupCount;    }