GraphEdge
Defined in: src/types/index.ts:283
A directed transition between two graph nodes in the internal diagram model.
Properties
Section titled “Properties”condition?
Section titled “condition?”optional condition?: string;Defined in: src/types/index.ts:284
from: string;Defined in: src/types/index.ts:285
id: string;Defined in: src/types/index.ts:297
Stable identity for this edge, unique across the whole graph:
${from}->${to}#${type}#${ordinal} — e.g. Route->Work#choice#1.
Assigned once by parseAsl and never renumbered, so it stays valid as a
DiagramOptions.edgeOverrides key even after a collapse removes sibling edges.
That stability is against graph transforms, not against ASL edits: the
ordinal segment is assigned in parser order, so inserting a new Choice rule
ahead of an existing one that shares the same Next shifts the existing rule’s
ordinal — and therefore its id. A caller hand-writing edgeOverrides keys
should expect them to need updating when the ASL’s rule order changes.
label?
Section titled “label?”optional label?: string;Defined in: src/types/index.ts:298
to: string;Defined in: src/types/index.ts:299
optional type?: EdgeType;Defined in: src/types/index.ts:300
visualOnly?
Section titled “visualOnly?”optional visualOnly?: boolean;Defined in: src/types/index.ts:301