[8079, 8135, 3723, 3676, 1901363, 5488, 3674]

def paths2edges(paths):
    """[8079, 8135, 3723, 3676, 1901363, 5488, 3674] """
    edges_all = set()
    for path in paths:
        for edge in path2edges(path):
            edges_all.add(edge)
    return edges_all