DEFAULT_MAX_DEPTH

const val DEFAULT_MAX_DEPTH: Int = 256

How deeply walk will nest before giving up.

This is a much tighter bound than DEFAULT_WALK_LIMIT and is still an order of magnitude past any real UI. It is separate because depth and breadth cost differently: the cycle check consults the ancestors of the current node, so a bound on depth is what keeps that check cheap.