MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __repr__

Method __repr__

machine_learning/frequent_pattern_growth.py:43–44  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 node_link: TreeNode | None = None
42
43 def __repr__(self) -> str:
44 return f"TreeNode({self.name!r}, {self.count!r}, {self.parent!r})"
45
46 def inc(self, num_occur: int) -> None:
47 self.count += num_occur

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected