Temporal knowledge graph timelines preserve the viewer’s mental map by clustering the final corpus once, slicing content nodes chronologically, and anchoring every intermediate solve to the resting layout. Weighted Procrustes alignment removes rotation and reflection drift, while quadratic u² blending guarantees smooth playback and exact static parity at the final step.
| Dimension | Naive Per-Step Re-Layout | Final-Anchored Temporal Timeline |
|---|---|---|
| Cluster Identity | Re-computed per step; labels and colors shift | Clustered once on finalCanonical (renames=0, colourBreaks=0) |
| Historical Filtering | Rebuilds topology from scratch each frame | Filters visible items up to s and reveals activeClusters |
| Frame Orientation | Arbitrary rotation, scale, and reflection drift | Weighted alignLayoutProcrustes ([0.85, 1.15], no mirror) |
| End-State Parity | Drifts from the resting static graph | Quadratic u² blend guarantees 0.0000px delta at n - 1 |
| Scrubbing UX | Re-solves on every seek | Cached keyframes in keyframeCache via GraphTimelineController |
Why Do Naive Temporal Graph Animations Destroy the Mental Map?
Naive dynamic graph animations break the viewer’s mental map because force-directed layouts are invariant to rotation, reflection, and translation. Re-solving and re-clustering each historical slice independently causes topic anchors to rename, recolor, and spin across the canvas, forcing visitors to re-learn spatial neighborhoods instead of tracking thematic growth [MELS95] [BBDW17].
In our previous article on edge-free knowledge graphs, we compressed 126 tags into macro topic clusters and OKLab-blended polygons. Extending that static map into a chronological replay exposes a classic dynamic-graph failure mode: when a new year of articles arrives, running a fresh clustering pass and unconstrained force simulation can flip the entire graph upside down or reassign cluster hues mid-playback, breaking the viewer’s spatial memory even when the underlying themes barely changed.
How Does Final-Corpus Clustering With Chronological Slicing Work?
buildTemporalGraphKeyframes computes macro topic clusters once on the complete final corpus (finalCanonical), then filters content items up to timestamp s (visible) and activates only the final clusters already touched (activeClusters). Because cluster identities never change mid-timeline, every theme keeps its exact name, OKLab color, and tag membership throughout.
Inside src/commons/shared/graph-payload.ts, buildTemporalGraphKeyframes sorts all content nodes chronologically by timestamp and builds finalCanonical once at the target cluster count. For any step s, it collects visible content items up to index s and enables only the activeClusters connected to those items. That single design choice eliminates mid-timeline label churn and palette jumps (renames=0, colourBreaks=0, weightDrift=0): a cluster that appears in 2018 wears the exact same pill label and OKLab hue it will hold in 2026.
How Do Procrustes Alignment and u² Blending Prevent Frame Drift?
Even with frozen cluster identities, sparse early subsets still rotate, scale, or drift when relaxed freely. Seeding from final positions, aligning each solve via alignLayoutProcrustes (weighted 1.0 on clusters, 0.01 on content, scale clamped to [0.85, 1.15], no mirroring), and applying quadratic u² blending preserves natural early proportions and 0.0000px end-state parity.
In src/commons/shared/graph-payload.ts, computeFinalLayoutAlignmentWeights assigns 1.0 to macro clusters (group === 0) and 0.01 to content nodes, locking the coordinate frame onto the stable topic anchors while allowing individual articles to settle naturally. alignLayoutProcrustes solves the optimal rigid-body transformation—with uniform scale clamped to [0.85, 1.15] and zero reflection—in both 2D and 3D. Finally, alignAndBlendToFinalLayout computes normalized progress u = step / (total - 1) and blends each aligned frame toward the resting layout by u², easing smoothly into 100% static parity (0.0000px delta) on the last step:
- Weighted Anchor Lock: Assigns weight
1.0to macro cluster pills and0.01to article nodes so early clusters stay oriented. - Clamped Procrustes Transform: Eliminates arbitrary rotation and mirroring while bounding scale drift within
[0.85, 1.15]. - Quadratic
u²End-State Blend: Guarantees exact0.0000pxpositional parity with the final static layout on stepn - 1.
Together, these three invariants preserve spatial memory across decades of publications without freezing early layouts artificially.
Interactive Timeline Bar and Left-Sidebar Tune Panel Across Five Engines
GraphTimelineController coordinates asynchronous warm solves and caches every step inside keyframeCache across all five visualization engines. A compact #timeline-bar provides #timeline-prev, #timeline-play, #timeline-next, and #timeline-scrubber controls below the canvas, while the #tune-panel left sidebar overlay keeps physics sliders accessible without covering playback.
Across all five live sandboxes—Cytoscape, Sigma, D3, vis-network, and 3D Force Graph—src/commons/client/graph-timeline-controller.ts drives chronological playback through a shared adapter contract:
- Step Controls (
#timeline-prev,#timeline-play,#timeline-next): Trigger discrete forward/backward stepping or continuous playback loops. - Scrubber & Cache (
#timeline-scrubber,keyframeCache): Enables instant zero-recompute seeking across previously solved steps. - Cluster Tuning Overlay (
#tune-panel): Docks physics andK-cluster sliders in a collapsible left sidebar clear of the timeline bar.
Caching each snapshot keeps backward scrubbing instantaneous while keeping physics sliders accessible during playback.
Practical Trade-Offs: Free Convergence vs. Strict Pinning
Letting each historical slice converge freely before applying rigid-body Procrustes alignment balances early legibility with global spatial memory. Strict per-node pinning freezes early articles at awkward future distances, whereas unpinned convergence followed by weighted alignment and u² blending preserves local proportions while converging smoothly to the resting graph.
Pinning every early node to its 2026 coordinates leaves a three-article graph stretched across an empty canvas as if waiting for unseen neighbors. Letting the force solver relax each sparse slice naturally keeps early clusters compact and readable, while post-solve Procrustes alignment and u² blending ensure the viewer never loses their bearings as the corpus grows. For the zero-overlap successor engine built on 60° barycentric triangulation, read SimplexViz: 60° Triangulation for Knowledge Maps or explore the interactive SimplexViz graph.
References
- [MELS95]Kazuo Misue, Peter Eades, Wei Lai and Kozo Sugiyama (1995). Layout Adjustment and the Mental Map. Journal of Visual Languages & Computing, 6(2), pp. 183--210. DOI: 10.1006/jvlc.1995.1010.
- [BBDW17]Fabian Beck, Michael Burch, Stephan Diehl and Daniel Weiskopf (2017). A Taxonomy and Survey of Dynamic Graph Visualization. Computer Graphics Forum, 36(1), pp. 133--159. DOI: 10.1111/cgf.12791.