Skip to content
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

Add Kruskal's minimum spanning tree algorithm #71

Merged
merged 2 commits into from
Jul 22, 2014

Conversation

eush77
Copy link
Contributor

@eush77 eush77 commented Jul 19, 2014

Tests are put into minimum_spanning_tree.js, though algorithm itself lives in kruskal.js. The reason for this is that tests for any of MST algorithms (another one is Prim's) should probably be the same.

Another option is to extract some code from minimum_spanning_tree.js to test/algorithms/graph/kruskal.js and require that file from there. In this case there would be two test suites instead of a single one, but it would preserve clear one-to-one correspondence between algorithms and test files. I am not sure if this option is better.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) when pulling 5c1bc9e on eush77:kruskal into a2981ff on felipernb:master.

@felipernb
Copy link
Owner

Mind including it in main.js? Thanks!

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) when pulling 259d3ef on eush77:kruskal into a2981ff on felipernb:master.

felipernb added a commit that referenced this pull request Jul 22, 2014
Add Kruskal's minimum spanning tree algorithm
@felipernb felipernb merged commit 24aad9e into felipernb:master Jul 22, 2014
@eush77 eush77 deleted the kruskal branch August 3, 2014 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants