style

style.setRelationshipShape

setRelationshipShape(relationship: string, shape: EdgeShape): Promise<void>

Set the shape of all edges of the given relationship type.

All SetEdgeShape commands are wrapped in a single labeled transaction — one undo step (commit f150a9fea). Does not emit "style:changed".

relationshipstringRelationship type name to target.
shapeEdgeShapeThe edge shape to apply.

Returns: Promise<void>

Example

await api.style.setRelationshipShape("KNOWS", "curve");