added nearest neighbor diagrams