Skip to main content

clustering_coefficient

Function clustering_coefficient 

Source
pub fn clustering_coefficient(graph: &Graph) -> f64
Expand description

Computes the global clustering coefficient of the graph.

Clustering coefficient = (3 * number_of_triangles) / number_of_connected_triplets

§Arguments

  • graph - The graph

§Returns

Global clustering coefficient (0.0 to 1.0)