From c418eb7d92115efcd5d15533926664b2866e2748 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 18 Feb 2018 11:49:00 +0100 Subject: [PATCH] finalization --- src/main/java/sysdev/graph/AStar.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/sysdev/graph/AStar.java b/src/main/java/sysdev/graph/AStar.java index ecce1e2..db99eac 100644 --- a/src/main/java/sysdev/graph/AStar.java +++ b/src/main/java/sysdev/graph/AStar.java @@ -46,7 +46,6 @@ public int compare(Node origin, Node destination) { PriorityQueue open_set= new PriorityQueue(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); @@ -54,8 +53,6 @@ public int compare(Node origin, Node destination) { 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))