Skip to content

Make Kruskal spanning tree accept weight vector instead of matrix#486

Merged
Krastanov merged 2 commits intomasterfrom
spanning-tree-from-vector
Feb 19, 2026
Merged

Make Kruskal spanning tree accept weight vector instead of matrix#486
Krastanov merged 2 commits intomasterfrom
spanning-tree-from-vector

Conversation

@matbesancon
Copy link
Copy Markdown
Member

Kruskal seems to be the only one in the current implementation that accepts a matrix and converts it to a vector.
Instead of this additional allocation, I refactored the two steps to be able to call the function with a weight vector directly, it was the form I needed in the first place for something in which I manipulate weight vectors

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.19%. Comparing base (acb2c4d) to head (f053047).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #486   +/-   ##
=======================================
  Coverage   97.19%   97.19%           
=======================================
  Files         121      121           
  Lines        7105     7107    +2     
=======================================
+ Hits         6906     6908    +2     
  Misses        199      199           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matbesancon matbesancon requested a review from Krastanov January 29, 2026 10:08
@Krastanov Krastanov force-pushed the spanning-tree-from-vector branch from 7ee34e9 to f053047 Compare February 19, 2026 20:02
Copy link
Copy Markdown
Member

@Krastanov Krastanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thank you!

@Krastanov Krastanov merged commit 07c9fbd into master Feb 19, 2026
11 of 14 checks passed
@Krastanov Krastanov deleted the spanning-tree-from-vector branch February 19, 2026 20:46
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.

2 participants