dssg / hitchhikers-guide

The Hitchhiker's Guide to Data Science for Social Good
986 stars 279 forks source link

Network tutorial: missing N-1 factor in closeness centrality formula #168

Open hsxavier opened 4 years ago

hsxavier commented 4 years ago

While the formula for closeness centrality is correct in Introduction_to_Networks_clean.ipynb, it is incorrect in Introduction_to_Networks_Karate.ipynb: a factor of n-1 is missing on the right-hand side, where n is the number of nodes.