neat.STree.getNearestNeighbours

STree.getNearestNeighbours(node, nodes)[source]

Find the nearest neighbours of node in nodes. If nodes contains node, 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 node are sought