Skip to content
  1. Examples

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.