public class AStar<Q> extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AStar.NodeComparator |
| Constructor and Description |
|---|
AStar(AStarGraph<Q> graphAStar) |
| Modifier and Type | Method and Description |
|---|---|
List<Q> |
astar(Q source,
Q destination)
Implements the A-star algorithm and returns the path from source to destination
|
public AStar(AStarGraph<Q> graphAStar)
graphAStar - @Reference(implNote="Why and how we used PriorityQueue",
link="http://stackoverflow.com/questions/20344041/why-does-priority-queue-has-default-initial-capacity-of-11")
public List<Q> astar(Q source,
Q destination)
source - the source nodeiddestination - the destination nodeidCopyright © 2018 Terra Software Informatics LLC.. All rights reserved.