Implemented Prim algorithm on Minimum Spanning Tree (I will also create a Maximum Spanning Tree version)