Skip to content

nexuml.core.diagram

nexuml.core.diagram

Mermaid diagram export for NexuML pipelines.

build_pipeline_mermaid_diagram

build_pipeline_mermaid_diagram(
    pipeline: Any,
    depth: int = 2,
    direction: str = "TB",
    show_params: bool = True,
    show_shapes: bool = True,
    show_metrics: bool = True,
) -> str

Build a Mermaid flowchart string representing pipeline.

Returns:

Type Description
str

Complete Mermaid flowchart as a string.

export_mermaid_diagram

export_mermaid_diagram(
    pipeline: Any, path: Path | str, **kwargs: Any
) -> None

Render a Mermaid diagram for pipeline and write it to path as Markdown.