MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / add

Method add

Binary_tree/tree.py:13–17  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

11
12 # Method to add the data
13 def add(self, data):
14 if self.root is None:
15 self.root = Node(data)
16 else:
17 self._add(data, self.root)
18
19 def _add(self, data, node):
20 if data < node.data:

Callers 7

digMethod · 0.45
add_feed_to_dbFunction · 0.45
DeFunction · 0.45
PeFunction · 0.45
main.pyFile · 0.45
mainFunction · 0.45

Calls 2

_addMethod · 0.95
NodeClass · 0.90

Tested by

no test coverage detected