Skip to content

const __GROWABLE_DISJOINT_SET_LAYOUTS: Readonly<Record<GrowableDisjointSetKind, GrowableDisjointSetFactory>>

Defined in: packages/disjoint-set/src/layouts.ts:16

Every growable layout, keyed by the kind a set built from it reports.

Iterate this table instead of naming factories one by one: a property sweep, a benchmark, or a caller comparing layouts covers every entry, and a layout added to GROWABLE_DISJOINT_SET_KINDS fails to typecheck until it is enrolled here too.

indexedDisjointSet is deliberately absent. It is built from an element count rather than an iterable, so it does not satisfy GrowableDisjointSetFactory; see GROWABLE_DISJOINT_SET_KINDS.