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