RelationshipDiagram.highlight Method

Marks each node for which the predicate returns true as highlighted, along with its outgoing source links, then applies the visual highlight state. Intended for explore mode.
 

Parameters

nodePredicate

Type: Function
A function called with the node datum; return true to highlight the node and its source links.