public double grp_degree(int [] degs) {
private double grp_degree(int [] degs) {
    public double grp_degree(int [] degs) {        int i;        int numv = _graph.numVertices();        int denom = (numv - 1) * 2 * (numv - 2);        int max = -1;        double group_deg;        if (denom == 0) {            return 0.0;        }        for (i = 0; i < numv; i++) {            if (degs[i] > max) {                max = degs[i];            }        }        group_deg = 0.0;        for (i = 0; i < numv; i++) {            group_deg += max - degs[i];        }        return ((double) group_deg / (double) denom);    }