RelationshipDiagram.highlightLinks Method
Highlights links for which linkPredicate returns true, and highlights the source
and target nodes of links for which nodePredicate returns true, then applies the
visual highlight state. Intended for non-explore mode.
Parameters
- linkPredicate
-
Type: Function
A function called with each link datum; return true to highlight the link.
- nodePredicate
-
Type: Function
A function called with each link's source and target node datum; return true to highlight the node.