Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ get
Method
get
graphs/multi_heuristic_astar.py:53–56 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
51
return
self.elements[0][1]
52
53
def
get(self):
54
(priority, item) = heapq.heappop(self.elements)
55
self.set.remove(item)
56
return
(priority, item)
57
58
59
def
consistent_heuristic(p: TPos, goal: TPos):
Callers
10
bidirectional_dij
Function · 0.95
dijk
Function · 0.45
prim
Function · 0.45
_dijkstra
Function · 0.45
add_pair
Method · 0.45
remove_pair
Method · 0.45
add_pair
Method · 0.45
remove_pair
Method · 0.45
pass_and_relaxation
Function · 0.45
shortest_path
Method · 0.45
Calls
1
remove
Method · 0.45
Tested by
1
shortest_path
Method · 0.36