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

Method minkey

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

Source from the content-addressed store, hash-verified

14 self.set = set()
15
16 def minkey(self):
17 if not self.empty():
18 return self.elements[0][0]
19 else:
20 return float('inf')
21
22 def empty(self):
23 return len(self.elements) == 0

Callers 1

multi_a_starFunction · 0.80

Calls 1

emptyMethod · 0.95

Tested by

no test coverage detected