@mermaid-editor-sdk/headless


@mermaid-editor-sdk/headless / addFlowchartEdgeToSubgraph

Function: addFlowchartEdgeToSubgraph()

addFlowchartEdgeToSubgraph(source, subgraphId, from, to, operator?, label?): string

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

Adds an edge inside a flowchart subgraph.

Parameters

ParameterTypeDefault valueDescription
sourcestring—Mermaid source to inspect or update.
subgraphIdstring—Identifier of the subgraph that receives the edge.
fromstring—Source element identifier.
tostring—Target element identifier.
operator?string'-->'Mermaid relationship or edge operator.
label?string''Displayed label.

Returns

string