repartition edges