gds_viz.canonical¶
Generate a Mermaid flowchart from a CanonicalGDS projection.
Renders the formal GDS decomposition: X_t -> U -> g -> f -> X_{t+1} with optional parameter space (Theta) and update map labels.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canonical
|
CanonicalGDS
|
The canonical GDS projection to visualize. |
required |
show_updates
|
bool
|
If True, label mechanism->X edges with entity.variable. |
True
|
show_parameters
|
bool
|
If True, show the Theta node when parameters exist. |
True
|
theme
|
MermaidTheme | None
|
Mermaid theme — one of 'default', 'neutral', 'dark', 'forest', 'base'. None uses the default ('neutral'). |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Mermaid flowchart diagram as a string. |