-
Notifications
You must be signed in to change notification settings - Fork 207
Remove The Hashmap from Shorted Path for Centrality Computation #1307
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 all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
88f5122
Remove the Hashmap of the katz centrality computation to avoid better…
Paulo-21 3087023
cargo fmt
Paulo-21 77a3eb6
Merge branch 'main' into main
Paulo-21 15cec78
Remove the Hashmap from the ShortestPath_for_centrality computation
Paulo-21 7fbbac4
Merge branch 'main' of https://github.com/Paulo-21/rustworkx
Paulo-21 0a2b549
clippy advice
Paulo-21 a6d8171
Fix
Paulo-21 70322a0
fmt
Paulo-21 00af4af
Fix python test
Paulo-21 d65c34e
Remove Hashmap from accumulate vertice too
Paulo-21 83cbfe6
Merge branch 'Qiskit:main' into main
Paulo-21 55a8b91
Remove useless comment
Paulo-21 4332b7c
Merge branch 'main' into main
Paulo-21 2b37127
Merge branch 'Qiskit:main' into main
Paulo-21 83707e0
Remove hashmap for betwenness with edge too and clean the code
Paulo-21 f0b14f2
fmt
Paulo-21 26feeef
Fix clippy
Paulo-21 18e2369
Merge branch 'Qiskit:main' into main
Paulo-21 2a805ae
Merge branch 'main' into main
Paulo-21 d7d3849
Merge branch 'main' into main
Paulo-21 2def624
Address PR comment (part 1)
IvanIsCoding 6826d5e
Address PR comment (part 2)
IvanIsCoding 6ca1c1f
Address PR comment (part 3)
IvanIsCoding 2035604
Add another test case covering case with node removals
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se how the hashmap was full filled with value for all node of the graph, so replacing with a vec of size of node bound will no be a problem for cache efficiency, because hashmap was already full when the algorithm started
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I was not involved in the original review of #799. Your version is definetely better than what was submitted in #799. With that being said, I'd like to compare it to a more optimized version like in https://github.com/IvanIsCoding/rustworkx/blob/f9de1db7fd5f9efafe4d6f5d9012ae2c75364081/rustworkx-core/src/centrality.rs#L1137. But that can come in a follow up PR.