Exemplo n.º 1
0
  @org.junit.Test
  public void testGreedySolution() throws Exception {
    int[][] adjacencyMatrix =
        new int[][] {
          {0, 1, 4, 7, 8},
          {3, 0, 9, 6, 2},
          {2, 4, 0, 5, 3},
          {8, 5, 9, 0, 1},
          {9, 6, 7, 3, 0}
        };

    GreedyTSP.greedySolution(adjacencyMatrix);
  }