state

open override fun state(): PartialSearch.MatchState

Returns the MatchState by computing a maximum bipartite matching over relations.

Unlike the default implementation, this override accounts for the case where a single input slot appears as a candidate for multiple recipe slots — a naive notEnough().isEmpty() check would produce a false MatchState.ALL in that situation. An augmenting-path algorithm (Kuhn's algorithm) is used to find the true maximum matching size and compare it against CRecipe.items.

Since

5.0.21