The sequence of turtles will be correct, but currently, we pick random links that connect those turtles. This usually doesn't matter, but if more than one link connect two turtles (with different link breeds), we won't necessarily return the one with the smallest weight.
The sequence of turtles will be correct, but currently, we pick random links that connect those turtles. This usually doesn't matter, but if more than one link connect two turtles (with different link breeds), we won't necessarily return the one with the smallest weight.