ClosenessCentrality[g]
finds the closeness centrality.
ClosenessCentrality
ClosenessCentrality[g]
finds the closeness centrality.
更多信息和选项
- ClosenessCentrality functionality is now available in the built-in Wolfram Language function ClosenessCentrality.
- To use ClosenessCentrality, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- The closeness centrality of a vertex u is defined as the inverse of the sum of the distance from u to all other vertices. The closeness centrality of a vertex in a disconnected graph is based on the closeness centrality of the component where this vertex belongs.
- The following options can be given:
-
Weighted True whether edge weight is to be used in calculating distance Normalize False whether to normalize the output
范例
打开所有单元 关闭所有单元基本范例 (2)
Compute the closeness centrality:
This function has been superseded by ClosenessCentrality in the Wolfram System:
Options (1)
相关指南
-
▪
- Graph Utilities Package ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
文本
Wolfram Research (2007),ClosenessCentrality,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/ClosenessCentrality.html.
CMS
Wolfram 语言. 2007. "ClosenessCentrality." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/ClosenessCentrality.html.
APA
Wolfram 语言. (2007). ClosenessCentrality. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphUtilities/ref/ClosenessCentrality.html 年
BibTeX
@misc{reference.wolfram_2025_closenesscentrality, author="Wolfram Research", title="{ClosenessCentrality}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/ClosenessCentrality.html}", note=[Accessed: 29-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_closenesscentrality, organization={Wolfram Research}, title={ClosenessCentrality}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/ClosenessCentrality.html}, note=[Accessed: 29-April-2026]}