use vertex(v, g) in kruskal_mst