LocalClusteringCoefficient

LocalClusteringCoefficient[g]
gives the list of local clustering coefficients of all vertices in the graph g.

LocalClusteringCoefficient[g,v]
gives the local clustering coefficient of the vertex v in the graph g.

LocalClusteringCoefficient[{vw,},]
uses rules vw to specify the graph g.

DetailsDetails

  • LocalClusteringCoefficient is also known as clustering coefficient.
  • The local clustering coefficient of the vertex v is the fraction of pairs of neighbors of v that are connected over all pairs of neighbors of v.
  • LocalClusteringCoefficient works with undirected graphs, directed graphs, and multigraphs.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Compute local clustering coefficients:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Highlight:

In[3]:=
Click for copyable input
Out[3]=

Distribution of local clustering coefficients in a graph:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2012
(9.0)
| Updated in 2015
(10.3)
Translate this page: