Gephi and NetworkX return different average clustering rates for the same graph

I calculated the average clustering coefficient using both Gephi and NetworkX. For the same graph, NetworkX gave 0.2399, and Gephi - 0.644.

  1. Why is this different?
  2. How do NetworkX and Gephi calculate average clustering?
  3. In particular, in case of disconnection of components; how do NetworkX and Gephi calculate the odds?
+8
source share
1 answer

just mention that networkx average_clustering has a parameter called count_zeros . middle_cluster documentation

Its default value is True, which means that it will consider a node with zero clustering. You can set it to False and see if it returns the same value as Gephi.

0
source

Source: https://habr.com/ru/post/1263552/


All Articles