public int compare(IdFloat idFloat, IdFloat idFloat1) {
            if (idFloat.vertexId == idFloat1.vertexId) return 0;
            int comp = -Float.compare(idFloat.value, idFloat1.value); // Descending order
            return (comp != 0 ? comp : (idFloat.vertexId < idFloat1.vertexId ? -1 : 1));
        }