private void printGraph(long[][] graph) {
        System.out.print("    ");
        for (int i = 0; i < graph.length; i++) {
            System.out.printf(" %06d ", i);
        }
        System.out.print("\n----");
        for (int i = 0; i < graph.length; i++) {
            System.out.print("--------");
        }
        System.out.print("\n");

        for (int i = 0; i < graph.length; i++) {
            System.out.printf("%3d|", i);
            System.out.print(" ");
            for (int j = 0; j < graph.length; j++) {

                System.out.printf("%02d  ", graph[i][j]);

            }
            System.out.print("\n");
        }
    }