When multiple candidate edges share the same minimum weight, you can pick any one of them. The choice does not affect the validity of the greedy step, though it may lead to a different MST if edge weights are not distinct.
Conditions: Multiple edges connect the visited set to unvisited nodes.; These edges have identical minimum weights.
When multiple candidate edges share the same minimum weight, you can pick any one of them. The choice does not affect the validity of the greedy step, though it may lead to a different MST if edge weights are not distinct.
Conditions: Multiple edges connect the visited set to unvisited nodes.; These edges have identical minimum weights.