period

fun period(state: Int): Int(source)

The period of state: the greatest common divisor of the numbers of transitions in which the chain can return to it. A period of 1 means aperiodic.

Requires that the chain can return to the state at all; a state it can never revisit has no period.