divideWayToEdge

remove unnecessary edge, reduce memory