给出图 g 的平均聚类系数.
MeanClusteringCoefficient[{vw,…}]
使用 vw 规则指定图 g.
MeanClusteringCoefficient
给出图 g 的平均聚类系数.
MeanClusteringCoefficient[{vw,…}]
使用 vw 规则指定图 g.
更多信息
- MeanClusteringCoefficient 也称之为平均(average)集聚系数或总体(overall)聚类系数.
- g 的平均聚类系数是 g 的顶点的所有局部聚类系数的平均.
- MeanClusteringCoefficient 作用于无向图、有向图和多图.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (5)
MeanClusteringCoefficient 适用于无向图:
MeanClusteringCoefficient[[image]]MeanClusteringCoefficient[[image]]MeanClusteringCoefficient[[image]]MeanClusteringCoefficient[{1 -> 2, 1 -> 3, 2 -> 3, 2 -> 4, 3 -> 1, 3 -> 2, 3 -> 4}]MeanClusteringCoefficient 适用于大图:
g = CirculantGraph[10000, Range[20]];MeanClusteringCoefficient[g]//Timing应用 (2)
g = ExampleData[{"NetworkGraph", "PowerGrid"}];N[MeanClusteringCoefficient[g]]𝒟 = GraphPropertyDistribution[MeanClusteringCoefficient[h], hUniformGraphDistribution[VertexCount[g], EdgeCount[g]]];N[Mean[RandomVariate[𝒟, 1000]]]g = ExampleData[{"NetworkGraph", "HighEnergyTheoryCollaborations"}];N[MeanClusteringCoefficient[g]]𝒟 = GraphPropertyDistribution[MeanClusteringCoefficient[h], hUniformGraphDistribution[VertexCount[g], EdgeCount[g]]];N[Mean[RandomVariate[𝒟, 1000]]]属性和关系 (7)
MeanClusteringCoefficient 是顶点所有局部聚类系数的平均:
Graph[{12, 13, 23, 24, 34}]{MeanClusteringCoefficient[%], Mean[LocalClusteringCoefficient[%]]}RandomGraph[UniformGraphDistribution[20, 50]]N[MeanClusteringCoefficient[%]]Graph[{12, 34}]MeanClusteringCoefficient[%]CompleteGraph[5]MeanClusteringCoefficient[%]BernoulliGraphDistribution 中平均聚类系数的分布:
𝒟 = GraphPropertyDistribution[MeanClusteringCoefficient[g], gBernoulliGraphDistribution[8, 0.6]];Histogram[RandomVariate[𝒟, 1000]]NExpectation[x, x𝒟]WattsStrogatzGraphDistribution 中平均聚类系数的分布:
𝒟[n_, p_, k_] := GraphPropertyDistribution[MeanClusteringCoefficient[g], gWattsStrogatzGraphDistribution[n, p, k]];Histogram[RandomVariate[𝒟[50, 0.05, 3], 1000]]NExpectation[x, x𝒟[100, 0.01, 20]]NExpectation[x, x𝒟[100, 0.99, 2]]BarabasiAlbertGraphDistribution 中平均聚类系数的分布:
𝒢 = BarabasiAlbertGraphDistribution[100, 10];data = RandomVariate[GraphPropertyDistribution[MeanClusteringCoefficient[g], g𝒢], 1000];Histogram[data]与 GlobalClusteringCoefficient 相比较:
data2 = RandomVariate[GraphPropertyDistribution[GlobalClusteringCoefficient[g], g𝒢], 1000];Histogram[{data, data2}]文本
Wolfram Research (2012),MeanClusteringCoefficient,Wolfram 语言函数,https://reference.wolfram.com/language/ref/MeanClusteringCoefficient.html (更新于 2015 年).
CMS
Wolfram 语言. 2012. "MeanClusteringCoefficient." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2015. https://reference.wolfram.com/language/ref/MeanClusteringCoefficient.html.
APA
Wolfram 语言. (2012). MeanClusteringCoefficient. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/MeanClusteringCoefficient.html 年
BibTeX
@misc{reference.wolfram_2026_meanclusteringcoefficient, author="Wolfram Research", title="{MeanClusteringCoefficient}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeanClusteringCoefficient.html}", note=[Accessed: 06-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_meanclusteringcoefficient, organization={Wolfram Research}, title={MeanClusteringCoefficient}, year={2015}, url={https://reference.wolfram.com/language/ref/MeanClusteringCoefficient.html}, note=[Accessed: 06-November-2026]}