-
Notifications
You must be signed in to change notification settings - Fork 206
Add parallelism to cloness_centrality
#1392
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1fe7d70
First look at parallel implementation
IvanIsCoding 28a5a20
Add parallel threshold parameter
IvanIsCoding c07ecdc
Add parllel_threshold to Python arguments
IvanIsCoding 82a611b
Make weighted closeness centrality also parallel
IvanIsCoding 64f5d6a
Add new argument to type stubs
IvanIsCoding 6024c01
Document parameters for newman's type specific functions
IvanIsCoding 96f99bf
Add parallel tests to Python
IvanIsCoding 6d48953
Add release notes for the change
IvanIsCoding 313ac64
Boost coverage of Newman Weighted Centrality via unweighted test case
IvanIsCoding 0ff1595
Simplify implementation with .collect()
IvanIsCoding f46b4e7
Add parallel_threshold to docstring
IvanIsCoding d683bd0
Merge branch 'main' into parallel-centrality
IvanIsCoding 26e735f
Merge branch 'main' into parallel-centrality
IvanIsCoding 35fadf5
Merge branch 'main' into parallel-centrality
IvanIsCoding 525e48e
Merge remote-tracking branch 'upstream/main' into parallel-centrality
IvanIsCoding 800549b
Fix cargo clippy warnings
IvanIsCoding 31333ad
Merge branch 'main' into parallel-centrality
IvanIsCoding 39ac17c
Merge branch 'main' into parallel-centrality
IvanIsCoding bea9129
Merge branch 'main' into parallel-centrality
IvanIsCoding 7ce7c80
Document RAYON_NUM_THREADS
IvanIsCoding 47c3970
Move reno section to upgrade
IvanIsCoding 346662f
Merge remote-tracking branch 'upstream/main' into parallel-centrality
IvanIsCoding b4ec302
Add rayon num threads detail to Python
IvanIsCoding 4db280e
Update Python docstring as well
IvanIsCoding d8e4c45
Merge branch 'main' into parallel-centrality
IvanIsCoding 2442e75
Try to fix indentation
IvanIsCoding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
releasenotes/notes/parallel-closeness-centrality-5165f62e370181eb.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| features: | ||
| - | | ||
| The :func:`~.closeness_centrality` method is now parallel for better performance. | ||
| The parallelism is toggled via the new `parallel_threshold` optional parameter. | ||
| other: | ||
|
IvanIsCoding marked this conversation as resolved.
Outdated
|
||
| - | | ||
| The `closeness_centrality` function in `rustworkx-core` | ||
| now requires `parallel_threshold` parameter which controls when the | ||
| algorithm switches to parallel execution. This is a breaking change. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.