CommunityModularity[g,partition]
gives the community modularity of a partition.
CommunityModularity[g,assignment]
gives the community modularity of an assignment.
CommunityModularity
CommunityModularity[g,partition]
gives the community modularity of a partition.
CommunityModularity[g,assignment]
gives the community modularity of an assignment.
更多信息和选项
- CommunityModularity functionality is now available in the built-in Wolfram Language function GraphAssortativity.
- To use CommunityModularity, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- A community in a network is a group of vertices such that there is a higher density of edges within the group than between them.
- Given a graph
, let the vertex set
be partitioned into
subsets
such that each subset belongs to one community. The community modularity
of this partition is defined as
, where
is the percentage of edges that have both ends in community
, and
is the percentage of edges that start from community
. In other words,
and
. - The community modularity
is a number less than or equal to 1. A large positive value indicates that the vertex partition gives significant community structure. - The following option can be given:
-
Weighted False whether edges with higher weights are preferred during matching
范例
打开所有单元 关闭所有单元基本范例 (2)
This gives the community modularity, assuming a partition {{1,2,3},{4,5,6}}:
CommunityModularity has been superseded by GraphAssortativity:
Options (1)
Weighted (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),CommunityModularity,Wolfram 语言函数,https://reference.wolfram.com/language/GraphUtilities/ref/CommunityModularity.html.
CMS
Wolfram 语言. 2007. "CommunityModularity." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/CommunityModularity.html.
APA
Wolfram 语言. (2007). CommunityModularity. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/GraphUtilities/ref/CommunityModularity.html 年
BibTeX
@misc{reference.wolfram_2025_communitymodularity, author="Wolfram Research", title="{CommunityModularity}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/CommunityModularity.html}", note=[Accessed: 30-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_communitymodularity, organization={Wolfram Research}, title={CommunityModularity}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/CommunityModularity.html}, note=[Accessed: 30-April-2026]}