Simple visualization for Minimum Spanning Tree using Prim's and Kruskal's Algorithm
-
Install
Networkx
andMatplotlib
package to your python. -
Go to your repository file.
-
Type python <kruskal.py / prim.py> < your dataset filename in txt format> to run the codes.
e.g :
Python Kruskal.py dataset1.txt