OK. I change the logic to only prune other edges that connecting with similar set