MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __le__

Method __le__

numpy_ml/utils/data_structures.py:51–54  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

49 return self.priority < other.priority
50
51 def __le__(self, other):
52 if not isinstance(other, PQNode):
53 return -1
54 return self.priority <= other.priority
55
56
57class PriorityQueue:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected