Exemplo n.º 1
0
 /**
  * Prints the results of one algorithm on System.out.
  *
  * @param algorithmString Name of the algorithm used (A*, Dijkstra, ...).
  * @param info Results of the algorithm.
  */
 private static void printAlgorithmResult(String algorithmString, AlgorithmResults info)
 {
     Console.WriteLine(algorithmString);
     if (info == null)
     {
         Console.WriteLine("No results found.");
         return;
     }
     Console.WriteLine("#nodes: " + info.getNodesExpanded());
     Console.WriteLine("#path cost: " + info.getBestPathCost());
 }