-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the boruvka's implementation able to handle forests? #2
Comments
The implementation of boruvkas algorithm should be able to handle forests by design. Here is a quick test: Example graph (
Looks like this:
Run it with this graph (
Allthouh the MST weight given is the sum over the forest and the last edge in the output of the MST ( Does this answer your question? |
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: