# readGraph

function in `@dioramajs/data/graph`

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

Nodes and links of a list or a table. A list: every `<li>` is a node, a nested list links its
items to the item it sits in, `data-dio-to` links to other items by id or label. A table: each
row links the names in its first two cells, a number in the third is the link's weight.

```ts
function readGraph(element: Element): GraphData
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |

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