Skip to main content

exporter.OptimalCompression

Collapse identity transits and safely inlinable formula nodes.

Usage

Source

exporter.OptimalCompression()

Target-marked cells and keys in preserve are ineligible for both identity transit forwarding and formula inlining. Pass series-bound public addresses via preserve (see series_binding_public_addresses) or via series_bindings / bindings_workbook so published leaves stay in the projected graph for downstream series helpers. Use this instead of in-place compress_optimal when the canonical graph must stay unchanged for Python codegen or Excel write-back.

Methods

Name Description
project() Build a non-mutating optimal-compression projection for export artifacts.

project()

Build a non-mutating optimal-compression projection for export artifacts.

Usage

Source

project(graph)

The result is a GraphReadView for Python codegen and Excel write-back (write_workbook). original_graph is unchanged. The projected clone is a snapshot: a later move_node on the original graph does not update it. Re-run project() after geometry edits to include them in a projected workbook.