graphclust.graphs.knn_indices#

graphclust.graphs.knn_indices(X, k, metric='euclidean')[source]#

Indices and distances of the k nearest neighbors of every sample (the sample itself excluded).