diff options
Diffstat (limited to 'networkx/algorithms/approximation/clustering_coefficient.py')
-rw-r--r-- | networkx/algorithms/approximation/clustering_coefficient.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/approximation/clustering_coefficient.py b/networkx/algorithms/approximation/clustering_coefficient.py index 7adf7e01..291753db 100644 --- a/networkx/algorithms/approximation/clustering_coefficient.py +++ b/networkx/algorithms/approximation/clustering_coefficient.py @@ -62,4 +62,4 @@ def average_clustering(G, trials=1000, seed=None): u, v = seed.sample(nbrs, 2) if u in G[v]: triangles += 1 - return triangles / float(trials) + return triangles / trials |