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

Method __lt__

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

Source from the content-addressed store, hash-verified

42 return self.priority >= other.priority
43
44 def __lt__(self, other):
45 if not isinstance(other, PQNode):
46 return -1
47 if self.priority == other.priority:
48 return self.entry_id < other.entry_id
49 return self.priority < other.priority
50
51 def __le__(self, other):
52 if not isinstance(other, PQNode):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected