alchemist-interfaces / it.unibo.alchemist.model.interfaces / Neighborhood / getNeighbors

getNeighbors

abstract fun getNeighbors(): ListSet<out Node<T>!>!

Allows to directly access every node in the neighborhood. A change of this List will be reflected in the neighborhood.

Return
ListSet<out Node<T>!>!: the list of the neighbors