def create_adj_elem(root):
    """ Small helper function to add left/right nodes to adj list """
    out = []
    if root.left is not None:
        out.append('node' + str(root.left.nid))
    if root.right is not None:
        out.append('node' + str(root.right.nid))

    return out