Click or drag to resize
AStarFindPathT Method
Computes the most efficient path in the specified graph between the specified pathfinding nodes using the A* algorithm.

Namespace: Slash.AI.Pathfinding
Assembly: Slash.AI.Pathfinding (in Slash.AI.Pathfinding.dll) Version: 1.0.6018.40189
Syntax
public static List<T> FindPath<T>(
	IWeightedGraph<T> graph,
	T start,
	T finish
)
where T : class, IAStarNode

Parameters

graph
Type: Slash.Collections.GraphsIWeightedGraphT
Pathfinding graph to look at.
start
Type: T
Starting node.
finish
Type: T
Finish node.

Type Parameters

T
Type of the pathfinding nodes.

Return Value

Type: ListT
List of pathfinding nodes representing the shortest path, if there is one, and null otherwise.
Exceptions
ExceptionCondition
ArgumentNullException Passed graph or start or finish node is null.
See Also