mermaid.flowchart.parse

mermaid.flowchart

parse(statements, header) -> graph, err

Parse a flowchart's statements into a graph

statements and header are what mermaid.source.statements returns. The graph is mermaid.flowchart.parser.parse's, and layout takes it.