environment/share/doc/ipython/examples/parallel/interengine/bintree.py
def print_bintree(tree, indent='  '):
    """print a binary tree"""
    for n in sorted(tree.keys()):
        print "%s%s" % (indent * depth(n,tree), n)
def print_bintree(tree, indent='  '):
    for n in sorted(tree.keys()):
        print "%s%s" % (indent * depth(n,tree), n)
def print_bintree ( tree , indent = '  ' ) : for n in sorted ( tree . keys ( ) ) : print "%s%s" % ( indent * depth ( n , tree ) , n )
print a binary tree
print a binary tree