Class AStarShortestPath<T, W>
A* algorithm implementation using Fibonacci Heap.
Inheritance
AStarShortestPath<T, W>
Assembly: Advanced.Algorithms.dll
Syntax
public class AStarShortestPath<T, W> : object where W : IComparable
Type Parameters
Constructors
AStarShortestPath(IShortestPathOperators<W>, IAStarHeuristic<T, W>)
Declaration
public AStarShortestPath(IShortestPathOperators<W> operator, IAStarHeuristic<T, W> heuristic)
Parameters
Methods
FindShortestPath(IGraph<T>, T, T)
Search path to target using the heuristic.
Declaration
public ShortestPathResult<T, W> FindShortestPath(IGraph<T> graph, T source, T destination)
Parameters
Type |
Name |
Description |
IGraph<T> |
graph |
|
T |
source |
|
T |
destination |
|
Returns