Skip to content

Commit

Permalink
finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSp committed Feb 18, 2018
1 parent 24a9196 commit c418eb7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/sysdev/graph/AStar.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,13 @@ public int compare(Node origin, Node destination) {
PriorityQueue<Node> open_set=
new PriorityQueue<Node>(SIZE, comparator); // The set of nodes to be evaluated, initially containing the start node


// Start with the work
open_set.add(start);
g_score.put(start, 0);
for (Node v : GRAPH.getNodes().values())
f_score.put(v, Integer.MAX_VALUE);
f_score.put(start, heuristicCostEstimate(start,goal));



while (!open_set.isEmpty()) {
final Node current = open_set.remove();
if (current.equals(goal))
Expand Down

0 comments on commit c418eb7

Please sign in to comment.