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

Method __gt__

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

Source from the content-addressed store, hash-verified

30 return d
31
32 def __gt__(self, other):
33 if not isinstance(other, PQNode):
34 return -1
35 if self.priority == other.priority:
36 return self.entry_id > other.entry_id
37 return self.priority > other.priority
38
39 def __ge__(self, other):
40 if not isinstance(other, PQNode):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected