Primsalgo

Click randomly on the canvas and the algorithm will find the shortest path to connect all the dots.