Computation of a minimum spanning tree using Jarnik-Prim algorithm and also Kruskal's algorithm