---
title: Highlight Nodes
order: 0
---

Highlighting a node and its neighbors when user hover it is a common requirement in graph analysis applications.

## Usage

The demos below show two ways to satisfy the highlight requirement:

- Built-in behavior: activate-relations;
- `graph.on` or [Custom Behavior](/en/docs/manual/middle/states/custom-behavior).
