Generalized FindClosestNode