toMermaid
Draws this graph as a Mermaid state diagram, which GitHub, GitLab and most documentation sites show as a picture in a code block of the language mermaid.
START and END are the [*] of the diagram, and a subgraph is a state that holds the diagram of its graph. A conditional edge is labeled with its entry in edgeLabels, its GraphEdge.label, or ?. A node in dynamicRoutes gets a note that it routes to any node, and a node in forEachNodes one that it runs for each item.
Parameters
nodes the run pauses before, usually GraphConfig.interruptBefore. Their names start with ⏸ and their states are highlighted. A node of a subgraph is named by its path, such as "research/ask".
nodes the run pauses after, usually GraphConfig.interruptAfter. Their names end with ⏸ and their states are highlighted.
a label for an edge, by the names of its two ends, such as ("read" to "refund") to "refund request". Use START and END for those ends. It takes the place of the GraphEdge.label of the edge.
Throws
if interruptBefore or interruptAfter name a node that is not in nodes or in a subgraph, or edgeLabels an edge that is not in edges.