Source: https://web.iitd.ac.in/~bspanda/mst.pdf