Lines Matching refs:root
22 def DFS(root, word, cur_path): argument
38 root_word_ptr = root.GetChildMemberWithName("word")
39 left_child_ptr = root.GetChildMemberWithName("left")
40 right_child_ptr = root.GetChildMemberWithName("right")
77 def tree_size(root): argument
86 if (root.GetValue is None):
89 if (int(root.GetValue(), 16) == 0):
92 left_size = tree_size(root.GetChildAtIndex(1))
93 right_size = tree_size(root.GetChildAtIndex(2))
99 def print_tree(root): argument
109 if (root.GetChildAtIndex(1).GetValue() is not None) and (
110 int(root.GetChildAtIndex(1).GetValue(), 16) != 0):
111 print_tree(root.GetChildAtIndex(1))
113 print(root.GetChildAtIndex(0).GetSummary())
115 if (root.GetChildAtIndex(2).GetValue() is not None) and (
116 int(root.GetChildAtIndex(2).GetValue(), 16) != 0):
117 print_tree(root.GetChildAtIndex(2))