def tree_to_file(tree:'BubbleTree', outfile:str):
    """Compute the bubble representation of given power graph,
    and push it into given file."""
    with open(outfile, 'w') as fd:
        fd.write(tree_to_bubble(tree))
Compute the bubble representation of given power graph,
    and push it into given file.