neighborsCount

open override fun neighborsCount(dimenCount: Int): Int

Calculates the neighbor chromosomes count depending on the dimension count of CellularPopulation.dimens.

Assumes that the space of neighbors does not intersect with itself: the identified neighbors must form a set (a set of unique elements without duplication). Also, that means neighbors indices from neighborsIndicesMatrix.first must contain only unique elements.

See also