CommunityStructurePartition[g]
gives the partition of a graph g into communities.


CommunityStructurePartition
CommunityStructurePartition[g]
gives the partition of a graph g into communities.
Details and Options
- CommunityStructurePartition functionality is now available in the built-in Wolfram Language function FindGraphCommunities.
- To use CommunityStructurePartition, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
- The partition groups the vertices into communities, such that there is a higher density of edges within communities than between them.
- The following option can be given:
-
Weighted False whether edges with higher weights are preferred during matching
Examples
open all close allBasic Examples (2)
This finds that the network is grouped into two communities:
CommunityStructurePartition has been superseded by FindGraphCommunities:
Tech Notes
Related Guides
-
▪
- 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
Text
Wolfram Research (2007), CommunityStructurePartition, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html.
CMS
Wolfram Language. 2007. "CommunityStructurePartition." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html.
APA
Wolfram Language. (2007). CommunityStructurePartition. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html
BibTeX
@misc{reference.wolfram_2025_communitystructurepartition, author="Wolfram Research", title="{CommunityStructurePartition}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_communitystructurepartition, organization={Wolfram Research}, title={CommunityStructurePartition}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructurePartition.html}, note=[Accessed: 10-August-2025]}