Networkx's nx.closeness_centrality()
uses Linton Freeman's algorithm for closeness centrality. This implementation uses Tore Opsahl's algorithm from this 2010 blog post on closeness centrality in networks with disconnected components.
Networkx's nx.closeness_centrality()
uses Linton Freeman's algorithm for closeness centrality. This implementation uses Tore Opsahl's algorithm from this 2010 blog post on closeness centrality in networks with disconnected components.