change algorithm to draw edges in order of angle from weighted center of all dots