Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def debug_print_child_tree(nodes, root, indent):
- print_str = ""
- for i in range(indent):
- print_str += '\t'
- print_str += "Node "+str(root)+" Children: "
- for child in nodes[root].child_set:
- print_str += str(child)+","
- print print_str
- indent += 1
- for child in nodes[root].child_set:
- debug_print_child_tree(nodes, child, indent)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement