nodesAround

abstract fun nodesAround(node: Node<T>, range: Double): List<Node<T>>(source)

Given a node this method returns a list of all the surrounding nodes within the given range. Note that this method (depending on the implementation) might be not optimized, and it's consequently much better to use Environment.neighborhoodOf and filter the neighborhood if you are sure that all the nodes within the range are connected to the center.


abstract fun nodesAround(position: P, range: Double): List<Node<T>>(source)

Given a position this method returns a list of all the surrounding nodes within the given range. Note that this method (depending on the implementation) might be not optimized.