コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the Dijkstra class.
 /// </summary>
 /// <param name="openSetCapacity">The max capacity of the open set.</param>
 /// <param name="findDistance">A delegate to find the g distance.</param>
 public Dijkstra(int openSetCapacity, FindDistance findDistance)
 {
     this.pathfinder = new AStar(openSetCapacity, findDistance, (from, to) => 0);
 }