User Manual:
~ Click on the box below to add vertices and edges.
~ Click on 'Add a Graph' to add a graph on the screen and run any visualization you want.
~ Click on 'Clear Graph' to clear the svg box.
~ Enter a start vertex and Click on "Run Prim" to run Prim's Algorithm.
~ Click on 'Run Kruskal' to run Kruskal's Algorithm.
~ You can run both algorithms at the same time to compare the process.
~ The cost of the MST will be displayed above the svg box.
How to understand the visualization:
~ The mustard edges are the ones that the algorithm is checking for and the blue edges are the edges that build the MST.
~ The number with the circle are the vertices and the number in the rectangle are the weights of the edges.