KNN_IN function

In-degree for observations in a k-nearest neighbors graph