# __GRAPH_LAYOUTS

> `const` **\_\_GRAPH_LAYOUTS**: `{ readonly [Kind in GraphKind]: (options: GraphOptions) => Extract<Graph, { kind: Kind }> }`

Defined in: [packages/graph/src/layouts.ts:17](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/graph/src/layouts.ts#L17)

Every storage layout this package constructs, keyed by the `kind` it reports, in `GRAPH_KINDS` order.

Exported so a caller, a test, or a benchmark can sweep every layout without naming one, and so a graph converts with `__GRAPH_LAYOUTS[kind]({ vertexCount, ...flags, edges: graph.edges() })`. Each row keeps its factory’s return type, so `__GRAPH_LAYOUTS['adjacency-list']` returns a `MutableGraph`. The `adjacency-matrix` row rejects `parallelEdges: true`, so a sweep over a multigraph skips it.
