reactiveIndex()
Create a reactive dual-key index (D54/D60). DELTA + lazy pull SNAPSHOT + pullId via {@link collectionCore}; this layer adds the sorted backend + Z reverse-lookup surface.
Import
Section titled “Import”import { reactiveIndex } from "@graphrefly/ts/data-structures";Signature
Section titled “Signature”function reactiveIndex(options: ReactiveIndexOptions = {}): ReactiveIndex<K, V>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | ReactiveIndexOptions | Options that configure the helper. |
Returns
Section titled “Returns”A ReactiveIndex<K, V> value.
Example
Section titled “Example”import { reactiveIndex } from "@graphrefly/ts/data-structures";Source
Section titled “Source”packages/ts/src/graph/data-structures/reactive-index.ts