private static void runAlgorithm(Settings settings, String par) {
        Graph graf = new Graph();
        try {
            graf.loadFromFile(settings.graphFileName);
        } catch (FileNotFoundException ex) {
            System.err.println("Błąd pliku grafu!");
            System.exit(-1);
        }
        Integer[] result = null;

        if (par.equals("lf")) {
            result = NotEvolutionAlgorithms.solveLargestFirst(graf);
        } else {
            result = NotEvolutionAlgorithms.solveSmallestFirst(graf);
        }

        int max = 0;
        for (int i = 0; i < result.length; ++i) {
            max = max > result[i] ? max : result[i];
        }
        System.out.println("Liczba kolorów wyznaczona przez alorytm " + par + " wynosi: " + (max + 1));
    }