app/src/main/java/org/jgrapht/alg/StoerWagnerMinimumCut.java
@Override public int compareTo(VertexAndWeight that)
        {
            if (this.active && that.active) {
                return -Double.compare(weight, that.weight);
            }
            if (this.active && !that.active) {
                return -1;
            }
            if (!this.active && that.active) {
                return +1;
            }

            // both inactive
            return 0;
        }
/**
         * compareTo that sorts in reverse order because we need extract-max and
         * queue provides extract-min.
         */
compareTo that sorts in reverse order because we need extract-max and
queue provides extract-min.
compareTo that sorts in reverse order because we need extract - max and queue provides extract - min .
@Override public int compareTo(VertexAndWeight that)
        {
            if (this.active && that.active) {
                return -Double.compare(weight, that.weight);
            }
            if (this.active && !that.active) {
                return -1;
            }
            if (!this.active && that.active) {
                return +1;
            }
            return 0;
        }
@ Override public int compareTo ( VertexAndWeight that ) { if ( this . active && that . active ) { return - Double . compare ( weight , that . weight ) ; } if ( this . active && ! that . active ) { return - 1 ; } if ( ! this . active && that . active ) { return + 1 ; } return 0 ; }
compareTo that sorts in reverse order because we need extract-max and
 queue provides extract-min.
compareTo that sorts in reverse order because we need extract - max and queue provides extract - min .
// both inactive