getNodesWithinRange

abstract fun getNodesWithinRange(node: Node<T>, range: Double): ListSet<Node<T>>(source)

Given a node this method returns a list of all the surroundings 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.getNeighborhood and filter the neighborhood if you are sure that all the nodes within the range are connected to the center.


abstract fun getNodesWithinRange(position: P, range: Double): ListSet<Node<T>>(source)

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