MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / get

Method get

Graphs/multi_hueristic_astar.py:55–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 return self.elements[0][1]
54
55 def get(self):
56 (priority, item) = heapq.heappop(self.elements)
57 self.set.remove(item)
58 return (priority, item)
59
60def consistent_hueristic(P, goal):
61 # euclidean distance

Callers 7

dijkFunction · 0.45
primFunction · 0.45
add_pairMethod · 0.45
remove_pairMethod · 0.45
add_pairMethod · 0.45
remove_pairMethod · 0.45
dfsFunction · 0.45

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected