wontonst / astar-search-algorithm

verilog implementation of the a* search algorithm
0 stars 1 forks source link

reconstructPath function #2

Closed wontonst closed 11 years ago

wontonst commented 11 years ago

private ArrayList reconstructPath(Node node) { ArrayList path = new ArrayList(); while(!(node.getPreviousNode() == null)) { path.add(0,node.getPoint()); node = node.getPreviousNode(); } this.shortestPath = path; return path;
}