Select the number of neighbords to use in the adjacency matrix, and return their indices