Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ minkey
Method
minkey
graphs/multi_heuristic_astar.py:14–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
12
self.set = set()
13
14
def
minkey(self):
15
if
not self.empty():
16
return
self.elements[0][0]
17
else
:
18
return
float(
"inf"
)
19
20
def
empty(self):
21
return
len(self.elements) == 0
Callers
1
multi_a_star
Function · 0.80
Calls
1
empty
Method · 0.95
Tested by
no test coverage detected