Skip to content

Add distance_matrix to rustworkx-core (backport #1439)#1493

Merged
IvanIsCoding merged 1 commit into
stable/0.17from
mergify/bp/stable/0.17/pr-1439
Aug 13, 2025
Merged

Add distance_matrix to rustworkx-core (backport #1439)#1493
IvanIsCoding merged 1 commit into
stable/0.17from
mergify/bp/stable/0.17/pr-1439

Conversation

@mergify

@mergify mergify Bot commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

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 <jake@binhbar.com>

* 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 <jake@binhbar.com>
Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>
(cherry picked from commit 7318a80)
@coveralls

Copy link
Copy Markdown

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
github-merge-queue Bot pushed a commit that referenced this pull request Sep 16, 2025
* Add distance_matrix to rustworkx-core (#1439) (#1493)

* 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.



* Deduplicate functions

* Add release note

* Remove stray debug print

* Remove invalid classifier and capitalize keywords

* Bump release version to 0.17.1

---------




(cherry picked from commit 7318a80)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Jake Lishman <jake@binhbar.com>
Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>

* Make workflow only trigger sdist steps

* Tweak license field

* Fix retworkx dist path

* Limit trigger to today

* Update timestamp condition in wheels.yml

* Update build conditions for wheels on specific date

* Revert to main status

* Use build for wheels.yml

* Fix newline

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Jake Lishman <jake@binhbar.com>
mergify Bot added a commit that referenced this pull request Sep 16, 2025
* Add distance_matrix to rustworkx-core (#1439) (#1493)

* 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.

* Deduplicate functions

* Add release note

* Remove stray debug print

* Remove invalid classifier and capitalize keywords

* Bump release version to 0.17.1

---------

(cherry picked from commit 7318a80)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Jake Lishman <jake@binhbar.com>
Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: Ivan Carvalho <ivancarvalho@gatech.edu>

* Make workflow only trigger sdist steps

* Tweak license field

* Fix retworkx dist path

* Limit trigger to today

* Update timestamp condition in wheels.yml

* Update build conditions for wheels on specific date

* Revert to main status

* Use build for wheels.yml

* Fix newline

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Jake Lishman <jake@binhbar.com>
(cherry picked from commit 69af7ff)
IvanIsCoding added a commit that referenced this pull request Sep 16, 2025
* Add distance_matrix to rustworkx-core (#1439) (#1493)

* 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.

* Deduplicate functions

* Add release note

* Remove stray debug print

* Remove invalid classifier and capitalize keywords

* Bump release version to 0.17.1

---------

(cherry picked from commit 7318a80)






* Make workflow only trigger sdist steps

* Tweak license field

* Fix retworkx dist path

* Limit trigger to today

* Update timestamp condition in wheels.yml

* Update build conditions for wheels on specific date

* Revert to main status

* Use build for wheels.yml

* Fix newline

---------




(cherry picked from commit 69af7ff)

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Jake Lishman <jake@binhbar.com>
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