DependencyGraph.evaluation_order()
Return nodes in dependency-first order (leaves before formulas that use them).
Usage
DependencyGraph.evaluation_order(
*, strict=True, iterate_enabled=None, cell_type_env=None
)Edge direction is A -> B meaning A depends on B. This method returns an ordering suitable for sequential evaluation (dependencies first).
If iterate_enabled is True (workbook has iterative calculation on), any must-cycle or may-cycle is rejected: generated Python does not emulate Excel’s iterative convergence. Pass False or None to apply the usual strict / non-strict rules without this check.
cell_type_env is forwarded to cycle_report so leaf-domain constraints can prove guarded cycles infeasible.