style.getRelationshipColor
getRelationshipColor(relationship: string): stringReturn the color currently assigned to a relationship type.
Reads from visualMapper.relationshipColors. Auto-assigns a palette color
on first lookup so it never returns undefined. The returned value reflects
the visual mapper's own state, which is not undoable — api.history.undo()
rolls back per-edge SetEdgeColor commands but leaves the mapper's
relationship→color mapping intact.
Not undoable. Does not emit any event.
relationship | string | Relationship type name to look up. |
Returns: string