MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / preorder

Method preorder

data_structures/avl.py:163–167  ·  view source on GitHub ↗
(self, curr_node)

Source from the content-addressed store, hash-verified

161 self.preShow(curr_node.right)
162
163 def preorder(self, curr_node):
164 if curr_node is not None:
165 self.preShow(curr_node.left)
166 self.preShow(curr_node.right)
167 print(curr_node.label, end=" ")
168
169 def getRoot(self):
170 return self.root

Callers

nothing calls this directly

Calls 1

preShowMethod · 0.95

Tested by

no test coverage detected