Documentation ¶
Overview ¶
Package pathfinder seeks to provide a small set of useful pathfinding algorithms with a simple, easy-to-use interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
Finder holds a Graph and presents pathfinding operations on it.
func (Finder) AStar ¶
AStar uses the A* algorithm to find a shortest path between two Nodes. It returns a Path from the source to the destination, the cost of that path, and an error if it was unable to find a path.
Click to show internal directories.
Click to hide internal directories.