# GraphNode

interface in `@dioramajs/data/graph`

```ts
import type { GraphNode } from '@dioramajs/data/graph'
```

A node of the graph: a list item, or a name in a table of links.

```ts
interface GraphNode
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |
| `group` | `string` |  |
| `id` | `string` |  |
| `label` | `string` |  |
| `link` | `HTMLElement \| null` | The item's link, followed when the node is clicked. |
| `note` | `string` | Text of the item besides its label, for the tooltip. |
| `value` | `number` | `data-dio-value`, NaN without one: sizes the node instead of its links. |

Defined in [packages/data/src/graph.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/data/src/graph.ts#L67).
