Skip to content
  1. Examples
  2. Complex Demos
  3. Neighborhood highlight

Neighborhood highlight

This example shows how to retrieve nodes and edges neighbors, ei connected elements. It uses getAdjacentNodes and getAdjacentEdges methods. Hover a node with your cursor, its direct neighbors will be highlighted in red and its neighbors' neighbors in orange.