Added support to run MST Prim algorithm on the graph