Docs Navigation (Stage 02)›

Incremental Tag Anchoring

Preserves existing cluster vertices and UIDs during live updates while attaching new tags incrementally.

Key Takeaways

  • Ideal for live collaborative feeds, streaming search results, and incremental document ingestion.
  • Prevents existing topic vertices from swapping positions when new items and tags arrive.

Visual Mechanism

Frame t (Frozen Vertex Anchors & UIDs)C1🔒C2🔒C3🔒+ addItems()Frame t+1 (Zero Global Reshuffle)new tag tethered
Freezes existing vertex cluster anchors and OKLab colors across live update() calls, attaching newly arriving tags and items locally without global topic reshuffling.

Factory Signature

Re-exported from @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/reactStage 02 Overview →
createIncrementalAnchorClusteringStrategy<TItem, TTagMeta>(options?: IncrementalClusteringOptions<TItem>): SimplexClusteringStrategy<TItem, TTagMeta>

Options & Defaults

getTagsDefault: item.tags

(item: TItem) => readonly string[]

Extracts discrete topic tags per item.

sharedTagRuleDefault: 'planar-hitting-set'

SharedTagRule<TItem>

Updates planar bridge tag coverage incrementally as new co-occurrences appear.

anchorRuleDefault: 'explaining-away'

SimplexAnchorRule<TItem>

Computes barycentric simplex weights against the pinned vertex topics.

Zero-Reshuffle Streaming Updates

On initialize(), Incremental Tag Anchoring establishes the initial K-vertex topic layout via QAP annealing. On subsequent update() calls (when items are added or removed without changing mesh dimensions), it freezes existing vertex assignments and routes newly discovered tags to the vertex with highest co-occurrence affinity—guaranteeing maximum spatial mental-map stability.

Usage Example

import {
  SimplexTopicGraph,
  createIncrementalAnchorClusteringStrategy,
  createWarmStartPbdLayoutStrategy,
} from '@simplex-viz/react';

<SimplexTopicGraph
  items={liveStreamItems}
  clusteringStrategy={createIncrementalAnchorClusteringStrategy()}
  layoutStrategy={createWarmStartPbdLayoutStrategy()}
/>;