# @dioramajs/data/graph

Exports of @dioramajs/data/graph.

## Functions and values

- [backdrop](/docs/api/data-graph/backdrop.md): The colour painted behind an element: the first ancestor background that is not clear.
- [default](/docs/api/data-graph/default.md): A list or a table of links drawn as a network: nodes in group colors sized by their links, laid out once from a seed, that grow in when the graph scrolls into view. The pointer or focus on a node lights it and its neighbors; the markup stays for screen readers and keyboards.
- [fitTo](/docs/api/data-graph/fit-to.md): Layout positions stretched into `plot`, element px; a flat axis stays in the middle.
- [layoutGraph](/docs/api/data-graph/layout-graph.md): Positions of the nodes, x right and y down, in a frame of the box's proportions; the same graph, mode, aspect and seed always give the same picture.
- [MAX_NODES](/docs/api/data-graph/max-nodes.md): Most nodes one graph draws; the rest of a longer list stays DOM only.
- [neighbors](/docs/api/data-graph/neighbors.md): Neighbors of every node, in the order the links were written.
- [readGraph](/docs/api/data-graph/read-graph.md): 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.
- [spanning](/docs/api/data-graph/spanning.md): A spanning tree by breadth from node 0, then from the first node of each other part: the parent and depth of every node, and the roots of the parts.

## Types

- [GraphData](/docs/api/data-graph/types/graph-data.md)
- [GraphEdge](/docs/api/data-graph/types/graph-edge.md)
- [GraphNode](/docs/api/data-graph/types/graph-node.md): A node of the graph: a list item, or a name in a table of links.
