Find the maximum bandwidthpath in  a sparse and dense network using Kruskal's and Dijkstra algorithm