# layoutGraph

function in `@dioramajs/data/graph`

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

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.

```ts
function layoutGraph(
  data: GraphData,
  mode: Mode,
  aspect: number,
  seed?: number,
): Float64Array
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `GraphData` |  |
| `mode` | `Mode` |  |
| `aspect` | `number` |  |
| `seed?` | `number` |  |

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