@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / addFlowchartEdge

Function: addFlowchartEdge()

addFlowchartEdge(source, from, to, operator?, label?): string

Defined in: source/flowchart-mutations.ts:565

Adds an edge between flowchart nodes.

Parameters

ParameterTypeDefault valueDescription
sourcestring—Mermaid source to inspect or update.
fromstring—Source element identifier.
tostring—Target element identifier.
operator?string'-->'Mermaid relationship or edge operator.
label?string''Displayed label.

Returns

string