https://medium.com/@monocosmo77/new-methods-around-minimum-spanning-trees-part4-computer-science-ef9a2ef27994