Lines Matching refs:root
23 def DFS (root, word, cur_path):
28 the path from the root of the tree to the current node.
37 # Get pointer field values out of node 'root'
39 root_word_ptr = root.GetChildMemberWithName ("word")
40 left_child_ptr = root.GetChildMemberWithName ("left")
41 right_child_ptr = root.GetChildMemberWithName ("right")
78 def tree_size (root):
87 if (root.GetValue == None):
90 if (int (root.GetValue(), 16) == 0):
93 left_size = tree_size (root.GetChildAtIndex(1));
94 right_size = tree_size (root.GetChildAtIndex(2));
100 def print_tree (root):
110 if (root.GetChildAtIndex(1).GetValue() != None) and (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() != None) and (int (root.GetChildAtIndex(2).GetValue(), 16) != 0):
116 print_tree (root.GetChildAtIndex(2))