Nearest Neighbor Method Graph Theory