A common procedure in data science and mathematics is building graphs/networks from a large collection of data points. I am interested in the constructing the adjacency matrix for the k-nearest neighbor graph of a collection of data points. Is there a library for this ?

I couldn’t find this on Graphs.jl or on NearestNeighbors.jl.

Any help would be much appreciated.