style.setRelationshipVisibility
setRelationshipVisibility(relationship: string, visible: boolean): Promise<void>Show or hide all edges of the given relationship type.
Recorded in history as "SetRelationshipVisibility". Does not emit "style:changed".
relationship | string | Relationship type name to target. |
visible | boolean | true to show, false to hide all edges of that type. |
Returns: Promise<void>
Example
await api.style.setRelationshipVisibility("INTERNAL", false);