Usage guidesInteraction

Highlight neighbors

Highlight a node’s neighborhood or an edge and its endpoints on hover.

Highlight a node’s neighborhood or an edge and its endpoints on hover.

Configuration

Set the neighborhood depth with degree and dim other elements with inactiveState. Hover B to see its one-hop neighborhood.

behaviors: [{ type: 'hover-highlight', degree: 1, inactiveState: 'inactive' }],

Example

Loading example…
Hover B for its one-hop neighborhood, or an edge for its endpoints. Move away to clear; drag empty space to pan
behaviors: ['zoom-canvas', 'drag-canvas', { type: 'hover-highlight', degree: 1, inactiveState: 'inactive' }],

Run the example and view the full code · Options and defaults