com.raphtory.algorithms.generic.motif.LocalClusteringCoefficient

LocalClusteringCoefficient

LocalClusteringCoefficient()

Returns the local clustering coefficient for each vertex.

The clustering coefficient is the number of triangles of that vertex as a proportion of the total possible triangles of that vertex

States

clustering: Double

local clustering coefficient

Returns

vertex name

clustering

name: String

clustering: Double

Note

Edges here are treated as undirected, so if the underlying network is directed here, ‘neighbours’ refers to the union of in-neighbours and out-neighbours. ``