Lines Matching refs:root
24 def DFS(root, word, cur_path): argument
40 root_word_ptr = root.GetChildMemberWithName("word")
41 left_child_ptr = root.GetChildMemberWithName("left")
42 right_child_ptr = root.GetChildMemberWithName("right")
79 def tree_size(root): argument
88 if (root.GetValue is None):
91 if (int(root.GetValue(), 16) == 0):
94 left_size = tree_size(root.GetChildAtIndex(1))
95 right_size = tree_size(root.GetChildAtIndex(2))
101 def print_tree(root): argument
111 if (root.GetChildAtIndex(1).GetValue() is not None) and (
112 int(root.GetChildAtIndex(1).GetValue(), 16) != 0):
113 print_tree(root.GetChildAtIndex(1))
115 print(root.GetChildAtIndex(0).GetSummary())
117 if (root.GetChildAtIndex(2).GetValue() is not None) and (
118 int(root.GetChildAtIndex(2).GetValue(), 16) != 0):
119 print_tree(root.GetChildAtIndex(2))