Clustering in Small-World Networks

Clustering can be used to quantify network robustness with respect to perturbation, and a high degree of clustering is one of the features captured by the small-world networks of Watts and Strogatz. In epidemiology, a robust network allows a disease to spread similarly even if the network is perturbed.

    
Compute the global clustering coefficient of a random graph:
In[41]:=
Click for copyable input
Out[41]=
In[42]:=
Click for copyable input
Out[42]=
Compute the global clustering coefficients of a set of random graphs:
In[43]:=
Click for copyable input
Create the heat map of selected graphs with respect to the coefficient values:
In[44]:=
Click for copyable input
In[45]:=
Click for copyable input
In[46]:=
Click for copyable input
In[47]:=
Click for copyable input
Out[47]=
New to Mathematica? Find your learning path »
Have a question? Ask support »