Exemplo n.º 1
0
 /// <summary>
 /// Prints the results of one algorithm on System.out.
 /// </summary>
 /// <param name="algorithmString">Name of the algorithm used (A*, Dijkstra, ...).</param>
 /// <param name="info">Results of the algorithm.</param>
 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());
 }