readGraph function
Nodes and links of a list or a table.
import { readGraph } from '@dioramajs/data/graph'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.
function readGraph(element: Element): GraphDataParameters
| Name | Type | Description |
|---|---|---|
element | Element |
Defined in packages/data/src/graph.ts.