kdtree
kdtree copied to clipboard
Now search_knn_dist returns the distances with the point itself
Adds the distances also with the point itself during calls of search_knn_dist. Calculating distances of each of the nodes again is redundant. If one doesn't need the distances, they can just ignore it and just form a new list using list comprehension.
only_nodes = [ i[0] for i in results ]