Version: 5. félévMSThttps://visualgo.net/en/mst https://www.geeksforgeeks.org/prims-minimum-spanning-tree-mst-greedy-algo-5/