MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / inc

Method inc

machine_learning/frequent_pattern_growth.py:46–47  ·  view source on GitHub ↗
(self, num_occur: int)

Source from the content-addressed store, hash-verified

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
48
49 def disp(self, ind: int = 1) -> None:
50 print(f"{' ' * ind} {self.name} {self.count}")

Callers 1

update_treeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected