const__GRAPH_LAYOUTS:{ readonly [Kind in GraphKind]: (options: GraphOptions) => Extract<Graph, { kind: Kind }> }
Defined in: packages/graph/src/layouts.ts:17
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.