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".
relationship | string | Relationship type name to target. |
shape | EdgeShape | The edge shape to apply. |
Returns: Promise<void>
Example
await api.style.setRelationshipShape("KNOWS", "curve");