diff --git a/search.py b/search.py index 0504fba59..aa556c3a0 100644 --- a/search.py +++ b/search.py @@ -263,8 +263,6 @@ def best_first_graph_search(problem, f): a best first search you can examine the f values of the path returned.""" f = memoize(f, 'f') node = Node(problem.initial) - if problem.goal_test(node.state): - return node frontier = PriorityQueue('min', f) frontier.append(node) explored = set()