Dijkstra's Algorithm in three.js

Here's a visualization of Dijkstra's algorithm using three.js. You adjust the weights of each edge (i.e. the line between two nodes, or "bases" in this case) with the sliders on the GUI to the right.

You can find the code here.