workflow / Exports / EdgeUtils
Class: EdgeUtils
Edge utility functions
Table of contents
Constructors
Methods
Constructors
constructor
• new EdgeUtils(): EdgeUtils
Returns
Methods
generateId
▸ generateId(sourceId, targetId, type): string
Generate edge ID from source and target
Parameters
| Name | Type |
|---|---|
sourceId | string |
targetId | string |
type | WorkflowConnectionType |
Returns
string
Defined in
interfaces/workflow-edge.ts:116
wouldCreateCycle
▸ wouldCreateCycle(edges, sourceId, targetId): boolean
Check if edge creates a cycle
Parameters
| Name | Type |
|---|---|
edges | WorkflowEdge[] |
sourceId | string |
targetId | string |
Returns
boolean