dynamic edge merging
merge based on function of the minumum copy