Skip to main content

exporter.SemanticVizPayload

JSON-serializable statement-graph visualization.

Usage

Source

exporter.SemanticVizPayload()

Distinct from cell-level LightweightVizPayload. Nodes are statements, not cells. ranks on the graph come from the distance-zero residual; positions come from the shared clustered force layout (clusters are series) with the vertical rank_pull towards input depth.

Parameter Attributes

version: int
graph: StatementGraph
positions: tuple[tuple[float, float], …]
depths: tuple[int, …]
rank_pull: RankPull = DEFAULT_RANK_PULL
annotations: Mapping[str, Any] | None = None

Attributes

Name Description
tier Shared size tier of this graph.

tier

Shared size tier of this graph.

tier: VizTier

Methods

Name Description
to_dict() Return a JSON-serializable mapping.

to_dict()

Return a JSON-serializable mapping.

Usage

Source

to_dict(*, cell_sample=None)
Parameters
cell_sample: int | None = None
If set, keep only the first cell_sample addresses on each node and the first cell_sample instance edges on each bundle. The HTML viewer uses this cap; omit it for a full dump (--json). cell_count and instance_edge_count stay the true sizes.