Maybe like this. I have not checked if the results from the Iris sample data would be of any practical use in this scenario.
kn_example_loop_over_nearest_neighbor.knwf (68.9 KB)