def pretty_print(path):
    """
    Print a path in a readable format
    param path: a list of (edge_label, node)
    """
    path_str = ''
    if len(path) > 0:
        path_str += path[0][1]

    for rel, node, _ in path[1:]:
        if rel.endswith('-1'):
            path_str += f' <--{rel[:-2]}-- {node}'
        else:
            path_str += f' --{rel}--> {node}'

    return path_str