global_clustering_coefficient#

global_clustering_coefficient(graph)#

Computes the global clustering coefficient of a graph. The global clustering coefficient is defined as the number of triangles in the graph divided by the number of triplets in the graph.

Note that this is also known as transitivity and is different to the average clustering coefficient.

Parameters:

graph (GraphView) – a Raphtory graph, treated as undirected

Returns:

the global clustering coefficient of the graph

Return type:

float

See also

[Triplet Count](triplet_count)