To build this from scratch, with just the provided files. Please take PrimNode.js, Prims.js, index.html, sketch.js and style.css and input them into p5.js. Now to build this visualization simply click ...
#1) Create a set sptSet (shortest path tree set) that keeps track of vertices included in the shortest-path tree, # i.e., whose minimum distance from the source is calculated and finalized. # ...