In graph theory, there are algorithms that find the shortest path between two nodes. I made one with pure CSS (including the graph drawing).
Drag the nodes, and the shortest path will update in real-time!
https://css-tip.com/graph-theory/
A fun demo powered by all the modern & cool CSS features (anchor positioning, scroll-driven animations, unit division, @property, if(), etc.) 🤩
#CSS #HTML