neat.STree.get_nearest_neighbours¶
- STree.get_nearest_neighbours(node, nodes)[source]¶
Find the nearest neighbours of
nodeinnodes. Ifnodescontainsnode, it is excluded from the search.When a node in the up-direction is a bifurcation node and in
nodes, nodes in its other subtree are excluded from the search!!! Untested
- Parameters:
node (neat.SNode) – node for which the nearest neighbours are sought
nodes (list of neat.SNode) – list in which nearest neighbours of
nodeare sought