powered by
Computes a k-nearest neighbour graph for a given set of points. Refer to the Wikipedia article for details.
k_nearest_neighbour_graph(points, k = 8)
A data frame with x, y coordinates for the points
Number of neighbours
# NOT RUN { k_nearest_neighbour_graph() # }
Run the code above in your browser using DataLab