Skip to content
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

Weighted betweenness centrality #1176

Open
fabmazz opened this issue Apr 29, 2024 · 1 comment
Open

Weighted betweenness centrality #1176

fabmazz opened this issue Apr 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fabmazz
Copy link
Contributor

fabmazz commented Apr 29, 2024

What is the expected enhancement?

It would be very cool to implement the calculation of betweenness centrality using the edges weights, as done in NetworkX : https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.centrality.betweenness_centrality.html

I'm guessing that since there is already some shortest paths methods which use network weights, it shouldn't be so difficult to add.

Thanks for the excellent work!

@IvanIsCoding IvanIsCoding added the enhancement New feature or request label Apr 30, 2024
@IvanIsCoding
Copy link
Collaborator

IvanIsCoding commented Apr 30, 2024

I think we can have weighted_betweenness_centrality as a method. The code will probably look completely different because we exploit the fact that betweenness_centrality is unweighted to speed the shortest path algorithm and paralellize steps, but I think we can implement the weighted_betweenness_centrality with Floyd-Warshall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants