Node

Workbook cell in a dependency graph.

Usage

Source

Node(
    sheet,
    column,
    row,
    formula,
    normalized_formula,
    value,
    is_leaf,
    is_target=False,
    metadata=dict()
)

is_leaf is true when the node has no outgoing dependency edges (value-only cells and literal-only formulas such as =1+1).

Parameter Attributes

sheet: str
column: str
row: int
formula: str | None
normalized_formula: str | None
value: Any
is_leaf: bool
is_target: bool = False
metadata: dict[str, Any] = dict()