•6 min read

Edge-Free Knowledge Graphs: OKLab & Cluster Pills

Edge-free knowledge graphs replace cluttered node-link hairballs with invisible physics springs, macro topic cluster pills, and perceptual OKLab color blending. Compressing 126 individual tags into three 2D or four 3D cluster anchors eliminates crossing edges while encoding semantic membership through spatial proximity, hue mixing, and regular N-gon content shapes.

Table
DimensionLegacy 126-Tag Node-Link GraphEdge-Free Cluster Simplex
Topic Anchors126 individual tag hubs3 in 2D (K = 3), 4 in 3D (K = 4), tunable 2..18
Edge RenderingDense crossing web of visible linksInvisible physics springs; edges on hover only
Color EncodingDiscrete palette collisionsPerceptual OKLab weighted hue blending
Label CollisionOverlapping tag badgesRectangular pill clearance (half-extents 79.5 x 17.2) + % badge
Content Type CueUniform circlesRegular N-gon shapes (3 to 10 corners)

Why Do 126 Individual Tag Nodes Create Visual Hairballs?

Displaying all 126 canonical tags as independent graph hubs forces a high-dimensional semantic space onto a flat screen, producing severe edge crossings and overlapping labels. Controlled readability experiments show that dense node-link diagrams break down above roughly twenty vertices [GFC04], obscuring both topic structure and individual items.

When every tag acts as a gravitational hub, items with five or six tags get pulled in conflicting directions across the canvas. Instead of revealing clean thematic neighborhoods, the force simulation settles into a tangled core where crossing lines dominate the viewer’s visual field.

Alternative set-visualization techniques such as Bubble Sets [CPC09] wrap scattered nodes in translucent isocontours without moving them. However, when more than a hundred overlapping tag sets coexist on a single canvas, stacked contours quickly turn opaque and obscure the underlying items.

How Does Dimensional Compression Into 3 or 4 Cluster Simplexes Work?

Aggregating 126 tags into three macro clusters in 2D (DEFAULT_TOPIC_CLUSTER_COUNT) and four in 3D (DEFAULT_TOPIC_CLUSTER_COUNT_3D) maps topics onto a triangle or tetrahedron simplex. Content nodes float inside this clean geometric hull under invisible physics springs, while visitors can optionally refine granularity interactively across K ∈ [2, 18].

SVG
Dimensional Compression into 2D Triangle and 3D Tetrahedron Simplexes Comparison of 126 cluttered individual tag hubs against a clean 2D triangle simplex with K=3 clusters and a 3D tetrahedron simplex with K=4 clusters 126 INDIVIDUAL TAG HUBS High-dimensional hairball on 2D/3D canvas #webgl #shaders #typescript CLUSTER K ∈ [2, 18] 2D SIMPLEX (K = 3) #AI #Systems #Visuals 3D TETRAHEDRON (K = 4) #AI #Research #Systems #Visuals

Why three clusters in 2D and four in 3D? Three non-collinear anchors form the maximum simplex that spans a two-dimensional plane without interior crossings, while four non-coplanar anchors span three-dimensional space as a tetrahedron. In src/commons/shared/graph-payload.ts, getDefaultTopicClusterCount selects 3 for 2D renderers and 4 for 3D engines, while reclusterCanonicalGraphPayload lets users slide K anywhere between 2 and 18 at runtime.

Because the simplex vertices are well separated, the physics springs between content nodes and their matched clusters no longer need to be drawn as permanent lines. Spatial position alone communicates which macro themes an article or project bridges—items sitting near a vertex belong strongly to one cluster, while bridges rest along the edges or center.

Why Does Perceptual OKLab Blending Need Few Cluster Hues?

Color mixing only communicates multi-topic membership when the human eye can still distinguish the underlying base hues. Blending three or four cluster anchors from CLUSTER_PALETTE inside the perceptual OKLab color space [Ott20] preserves vivid chroma and uniform lightness, whereas mixing 126 hues collapses immediately into muddy gray.

In standard sRGB, averaging complementary colors like sky blue and amber drops saturation and produces a dull brownish gray in the middle. By converting hex colors into OKLab via hexToOklab, computing a weighted average over cluster overlap ratios, and gently boosting chroma in mixHexColorsOklab inside src/commons/shared/graph-payload.ts, bridge nodes retain clean, readable intermediate hues.

Even in OKLab, perceptual blending has a strict cognitive ceiling. Three primary cluster hues (Sky, Amber, and Mint in 2D) or four (adding Rose in 3D) form a legible color gamut enforced by three design rules:

  • Bounded Palette Gamut (CLUSTER_PALETTE): Limits default mixing to 3 primary anchors in 2D and 4 in 3D so hues never collapse to gray.
  • Perceptual Linear Averaging (hexToOklab): Computes weighted color sums in uniform OKLab lightness coordinates rather than sRGB.
  • Bridge Chroma Boost (mixHexColorsOklab): Restores subtle saturation on multi-cluster items so cross-disciplinary bridges stand out visually.

Together, these three constraints ensure every mixed node visibly communicates both its dominant and secondary topic weights at a glance.

Cluster Pills, Clearance Zones, and Equal-Area N-Gons

Removing visible edges shifts the burden of legibility onto node geometry and label spacing. Macro topic anchors render as rounded cluster pills with a rectangular clearance zone (enforceClusterPillClearance2D) and a docked percentage coverage badge, while the eight content collections use equal-area regular N-gon polygons from three to ten corners.

SVG
Perceptual OKLab Blending, Pill Clearance Zones, and N-Gon Shapes Diagram showing OKLab weighted color blending, the cluster pill rectangular clearance zone with a docked percentage coverage badge, and regular N-gon content type shapes PERCEPTUAL OKLAB BLENDING Chroma-preserved mixing across 3 cluster hues Sky 50% Amber 30% Mint 20% OKLab Mix Vivid Chroma sRGB Muddy Gray PILL CLEARANCE boxHalfW = 79.5, boxHalfH = 17.2 #AI · Graphs 72% Staggered outside zone 8 N-GON TYPES 3 to 10 equal-area corners 3: Posts 4: Pubs 5: Decks 6: Courses 7–8: Work 9–10: News/Vis

In src/commons/shared/graph-solvers.ts, enforceClusterPillClearance2D and enforceClusterPillClearance3D enforce a rectangular exclusion zone (boxHalfW = 79.5, boxHalfH = 17.2) around each cluster pill so content nodes never hide behind pill typography. Any colliding node is pushed outward along staggered candidate offsets just beyond the pill boundary.

During hover interaction, src/commons/client/vis-tooltip.tsx docks an external % coverage badge beside each connected cluster pill and adds its width (extraBadgeW) to the tooltip’s collision-avoidance bounding box. Meanwhile, getContentGroupPolygonSides and getPolygonAreaRadiusScale in src/commons/shared/graph-payload.ts map the eight content types onto regular polygons (3 to 10 sides) scaled to equal visual area so triangles never look smaller than circles:

  • Rectangular Pill Exclusion (boxHalfW = 79.5, boxHalfH = 17.2): Repels overlapping content nodes cleanly outside cluster label boundaries.
  • Docked Coverage Badges (extraBadgeW): Accounts for hover % badge widths inside tooltip collision-avoidance boxes.
  • Equal-Area N-Gon Mapping (3 to 10 sides): Normalizes visual polygon area across all eight content collections.

These geometric clearance invariants keep pill typography, hover badges, and multi-domain node shapes legible without static edge clutter.

Honest Trade-Offs: Path Finding vs. Global Clarity

Edge-free layouts are not a universal replacement for explicit links. While removing static edges eliminates hairball clutter and clarifies macro topic clusters, node-link diagrams still excel at direct path-finding tasks [GFC04], whereas edge-free layouts trade away permanent link tracing for global clarity. Hover ego-focus and dynamic connection reveals restore path inspection on demand without permanent visual noise.

For global exploration—scanning which themes dominate a portfolio or spotting cross-disciplinary bridges—hiding default edges dramatically improves scan speed and reduces cognitive load. When a visitor actually needs to trace exact connections from one article to its shared clusters and peer items, hovering or pinning a node temporarily illuminates its local neighborhood and percentage overlap badges. To follow how this architecture evolves across chronological history and scales into a reusable 60° triangulation engine, continue to Animating Knowledge Graphs Without Breaking the Mental Map and SimplexViz: 60° Triangulation for Knowledge Maps.

References

  • [Ott20]
    Björn Ottosson (2020). A perceptual color space for image processing. bottosson.github.io. Available online at https://bottosson.github.io/posts/oklab/.
  • [GFC04]
    Mohammad Ghoniem, Jean-Daniel Fekete and Philippe Castagliola (2004). A Comparison of the Readability of Graphs Using Node-Link and Matrix-Based Representations. In IEEE Symposium on Information Visualization (InfoVis 2004). DOI: 10.1109/INFVIS.2004.1.
  • [CPC09]
    Christopher Collins, Gerald Penn and Sheelagh Carpendale (2009). Bubble Sets: Revealing Set Relations with Isocontours over Existing Visualizations. IEEE Transactions on Visualization and Computer Graphics, 15(6), pp. 1009--1016. DOI: 10.1109/TVCG.2009.122.