Create my_prims_mst_matrix_form