MCPcopy Index your code
hub / github.com/ddbourgin/numpy-ml / to_dict

Method to_dict

numpy_ml/utils/data_structures.py:26–30  ·  view source on GitHub ↗

Return a dictionary representation of the node's contents

(self)

Source from the content-addressed store, hash-verified

24 return fstr.format(self.key, self.val, self.priority, self.entry_id)
25
26 def to_dict(self):
27 """Return a dictionary representation of the node's contents"""
28 d = self.__dict__
29 d["id"] = "PQNode"
30 return d
31
32 def __gt__(self, other):
33 if not isinstance(other, PQNode):

Callers 2

popMethod · 0.45
peekMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected