Skip to content

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 13, 2025

This commit moves the distance matrix functionality to rustworkx. This is mostly a straightforward migration as the functionality was written in a generic way already. The only difference is how node holes were handled, the this opted to split the functions into 2, a verison that assumes the graph has compact indices and one that doesn't.


This is an automatic backport of pull request #1439 done by [Mergify](https://mergify.com).

* Add distance_matrix to rustworkx-core

This commit moves the distance matrix functionality to rustworkx. This
is mostly a straightforward migration as the functionality was written
in a generic way already. The only difference is how node holes were
handled, the this opted to split the functions into 2, a verison that
assumes the graph has compact indices and one that doesn't.

* Optimize the implementation of distance matrix

This commit performs some optimizations on the internals of the
distance_matrix() function. It avoids extra allocations and uses a
fixedbitset for tracking instead of hashsets.

Co-authored-by: Jake Lishman <[email protected]>

* Deduplicate functions

* Add release note

* Remove stray debug print

* Remove invalid classifier and capitalize keywords

* Bump release version to 0.17.1

---------

Co-authored-by: Jake Lishman <[email protected]>
Co-authored-by: Ivan Carvalho <[email protected]>
Co-authored-by: Ivan Carvalho <[email protected]>
(cherry picked from commit 7318a80)
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16926047429

Details

  • 75 of 75 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 94.645%

Totals Coverage Status
Change from base Build 16923889460: 0.003%
Covered Lines: 17815
Relevant Lines: 18823

💛 - Coveralls

@IvanIsCoding IvanIsCoding merged commit d0d3299 into stable/0.17 Aug 13, 2025
36 checks passed
@IvanIsCoding IvanIsCoding deleted the mergify/bp/stable/0.17/pr-1439 branch August 13, 2025 03:02
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.

3 participants