Clustering in Small-World Networks
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.
RandomGraph[WattsStrogatzGraphDistribution[40, 0.05, 5]]GlobalClusteringCoefficient[%]{graphs, coeffs} = Transpose[SortBy[{#, GlobalClusteringCoefficient[#]}& /@ RandomGraph[WattsStrogatzGraphDistribution[30, 0.1, 3], {10000}], Last]];min = Min[coeffs];max = Max[coeffs];nf = Nearest[coeffs -> graphs];values = Range[min, max, (max - min) / (4 ^ 2 - 1)];Grid[Partition[Map[Annotate[First[nf[#]] 1, {VertexStyle -> Directive[White, EdgeForm[White]], EdgeStyle -> White, Background -> ColorData[{"SolarColors", "Reversed"}, Rescale[#, {min, max}]], ImageSize -> {100, 100}}]&, values], 4]]