Interface IAStarHeuristic<T, W>
Search heuristic used by A* search algorithm.
Namespace: Advanced.Algorithms.Graph
Assembly: Advanced.Algorithms.dll
Syntax
public interface IAStarHeuristic<T, W>
where W : IComparable
Type Parameters
Name | Description |
---|---|
T | |
W |
Methods
HueristicDistanceToTarget(T, T)
Return the distance to target for given sourcevertex as computed by the hueristic used for A* search.
Declaration
W HueristicDistanceToTarget(T sourceVertex, T targetVertex)
Parameters
Type | Name | Description |
---|---|---|
T | sourceVertex | |
T | targetVertex |
Returns
Type | Description |
---|---|
W |