Implementing Kruskal's algorithm
along with insertion sort
in C++ to generate Minimum spanning tree and calculate its cost.
-
Add new vertex
:- Click on left mouse in the position where you want to add a vertex.
Add new edge
:- Click on right mouse on vertex one then click on right mouse on vertex two, then enter the edge weight in the command prompt associated with the app then press enter.
Start calculating
:- Press space bar.