Post

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! css-tip.com/graph-theory/ A fun demo powered by all the modern & cool CSS features 🤩

That's amazing. I don't even know where to start to do this without JS. How to track the position? How to calculate based on it? How to implement the algorithm? I need to look into the code ...

Or wait for a future* article where I will detail all the tricks. * don't know if it's a far or near future.

0 reposts4 likes

No replies yet.