Finished edge coalescing algorithm.