DependencyGraph.cycle_report()
Classify must-cycles vs may-cycles, dropping guard-infeasible SCCs.
Usage
DependencyGraph.cycle_report(
*,
cell_type_env=None,
)When cell_type_env is omitted, uses self.cell_type_env (set by create_dependency_graph from DynamicRefConfig). Identity-formula cells are rewritten to their copied cell before guards are conjoined, so singleton leaf domains apply through aliases. Guard comparisons are first decided, where possible, from an affine/interval abstraction of the guard cells (GuardConeAbstraction).
Each may-cycle is a residual component: the cyclic part of an SCC left after dropping edges whose guard alone is infeasible, and that still contains a guard-feasible cycle. It can be smaller than the SCC of the full graph.
The env is the whole contract for leaf values: a leaf with a declared domain ranges over it, even when the workbook holds a literal there, and a leaf without one is unconstrained. Cycle analysis never assumes a leaf keeps its workbook value; pin such a leaf with a singleton domain (for example Literal[0]) to make it a constant.