local_clustering_coefficient#

local_clustering_coefficient(graph, v)#

Local clustering coefficient - measures the degree to which nodes in a graph tend to cluster together.

The proportion of pairs of neighbours of a node who are themselves connected.

Parameters:
  • graph (GraphView) – Raphtory graph, can be directed or undirected but will be treated as undirected.

  • v (NodeInput) – node id or name

Returns:

the local clustering coefficient of node v in graph.

Return type:

float