You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please mention what happens in case a vertex does not have any edges connecting to it. Will this implementation give a minimum spanning forest?
Or is that not a valid case?
The text was updated successfully, but these errors were encountered:
Allthouh the MST weight given is the sum over the forest and the last edge in the output of the MST (0 0 0) doesn't belong to it. This is because the MST graph struct is created at the begining and there I assume that the MST will have as many edges as there are vertices - 1 (see https://github.com/SethosII/minimum-spanning-tree/blob/master/src/main.c#L207).
Can you please mention what happens in case a vertex does not have any edges connecting to it. Will this implementation give a minimum spanning forest?
Or is that not a valid case?
The text was updated successfully, but these errors were encountered: