private void useNonEvolutionaryAlgorith(int type) {

        Integer[] result = null;

        switch (type) {
            case 1:
                result = NotEvolutionAlgorithms.solveLargestFirst(graph);
                break;
            case 2:
                result = NotEvolutionAlgorithms.solveSmallestFirst(graph);
                break;
        }

        int max = 0;
        for (int i = 0; i < result.length; ++i) {
            max = max > result[i] ? max : result[i];
        }
        double fval = gcp.costFunction(result);

        jLabel7.setText("Info: NonGenetic - Fval: " + fval + " No of colors: " + (max + 1));

    }