strongly-connected-components

← ~/visualizations

strongly-connected-components #

Shows directed-path reachability (u ->* v) by animating highlighted paths, then flips direction to demonstrate mutual reachability. Finally, it outlines SCCs as equivalence classes (a partition of vertices), making the “maximal strongly connected sets” visually explicit.

canvasclick to interact

⏮◀◀▶▶STEP0.25x1xZOOM

t=0s

practical uses #

technical notes #

Uses a fixed small directed graph with 3 SCCs. Each cycle (~4.2s) animates BFS-derived shortest paths for u ->* v then v ->* u, and finally draws bounding boxes per SCC. Grid snapping and square nodes/arrows create a blocky green-on-black aesthetic; scale is responsive via Math.min(w,h)/baseSize.

← proof-techniquesrate-distortion-theory →