debugging knn graph