Convert a Custom Graph Spec to Mermaid
as_mermaid(
x,
direction = c("TD", "LR"),
subgraphs = NULL,
include_start_end = TRUE,
style = TRUE
)Mermaid flowchart text.
Graph spec list (from `build_custom_agent(..., output = "both")$graph`) or a compiled object returned by `build_custom_agent(..., output = "both")` or [compile_graph()].
Mermaid direction: `"TD"` (top-down) or `"LR"` (left-right).
Optional named list of subgraph groupings.
Logical; include `__start__` and `__end__` nodes.
Logical; include default LangGraph-like Mermaid styling.