style

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".

relationshipstringRelationship type name to target.
visiblebooleantrue to show, false to hide all edges of that type.

Returns: Promise<void>

Example

await api.style.setRelationshipVisibility("INTERNAL", false);