code: def prepare_ec(oo, sizes, M):
      
      tour = range(len(oo))
      tour_sizes = np.array([sizes.sizes[x] for x in oo])
      tour_M = M[oo, :][:, oo]
      return tour, tour_sizes, tour_M
docs: This prepares EC and converts from contig_id to an index.