getGraphAsync(), including StateGraph.
The examples below use the same small graph in both languages: two nodes, a conditional edge from node1, and a loop back from node2.
Mermaid
Calldraw_mermaid() on the drawable graph to get Mermaid syntax. Paste the string into any Mermaid renderer, or keep it in docs and PRs.
PNG
Render the graph as a.png. This uses the Mermaid.ink API to generate the diagram.
See also
Connect these docs to your agent of choice via MCP for real-time answers.

