-
Notifications
You must be signed in to change notification settings - Fork 152
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
Simplifying betweenness_centrality (for vertices) #815
Conversation
23064c5
to
13d892c
Compare
Pull Request Test Coverage Report for Build 4388571347
💛 - Coveralls |
cef796e
to
4d66ed6
Compare
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.
LGTM, thanks for reviving your old PR. I always felt bad that it fell through the cracks so it's good to get this simplification merged now.
@@ -75,7 +74,7 @@ use rayon_cond::CondIterator; | |||
/// [`edge_betweenness_centrality`] | |||
pub fn betweenness_centrality<G>( | |||
graph: G, | |||
endpoints: bool, | |||
include_endpoints: bool, |
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.
I think this ok from a backwards compatibility perspective since in rust the arguments are all passed positionally (this would be breaking in Python so I wanted to just note this and check myself).
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.
Oh yeah, that's a good point.
#799 "Add edge betweenness centrality" spurred me to try to reduce code repetition and complexity in betweenness centrality (for vertices). I recall trying
rayon-cond
in the past. In any case, it seems to work here now.