nn2 as a fast way to find the neares neighbors.
makeKNNgraph(x, k, eps = 0, diag = FALSE)eps > 0 the KNN search is approximate,
see nn2TRUE every edge of the returned
graph will have an edge with weight 0 to itself.igraph with edge
weight being the distances.