igraph / igraph

Library for the analysis of networks
https://igraph.org
GNU General Public License v2.0
1.74k stars 405 forks source link

Wishlist: Katz centrality and alpha centrality #1977

Open szhorvat opened 2 years ago

szhorvat commented 2 years ago

What is the feature or improvement you would like to see?

Implement Katz centrality. This requires some linear algebra, ideally done with sparse matrices for good performance. The implementation will likely need to use CXSparse.

Use cases for the feature

This may be the most popular centrality measure not yet implemented in igraph.

References

Related

ntamas commented 1 year ago

Are alpha centrality and Katz centrality the same thing under different names?

Judging from the code in the R interface, alpha centrality would require inverting a sparse matrix only. cs_lsolve() or one of the related functions would probably be enough.

szhorvat commented 1 year ago

Are alpha centrality and Katz centrality the same thing under different names?

No, but they are closely related and it makes sense to implement them at the same time.

Judging from the code in the R interface, alpha centrality would require inverting a sparse matrix only. cs_lsolve() or one of the related functions would probably be enough.

Yes, these are easy to implement in any language that has sparse linear algebra support.