Length of path V5
to V6
in mst of n = 10 vertices is
Path from V5
to V6 contain 8+4+3+6+10 = 31
Path from V5
to V6 contain 8+4+3+6+10 = 31
Path from V5
to V6 contain 8+4+3+6+10 = 31
Total sum = 10 + 9 + 2 + 15 + 16 + 7 + 4 + 6 = 69
Here 3 can’t be taken because it will produce a
cycle so take 4.
This solution is 1 + 2 + 4 = 7Saved in this browser. Nothing changes for anyone else.