layoutGraph function
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.
import { layoutGraph } from '@dioramajs/data/graph'.
function layoutGraph(
data: GraphData,
mode: Mode,
aspect: number,
seed?: number,
): Float64ArrayParameters
| Name | Type | Description |
|---|---|---|
data | GraphData | |
mode | Mode | |
aspect | number | |
seed? | number | Default |
Defined in packages/data/src/graph.ts.