GraphUtilities`
GraphUtilities`

CommunityStructureAssignment

As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. »

CommunityStructureAssignment[g]

gives the assignment of vertices of a graph g into communities.

Details and Options

  • CommunityStructureAssignment functionality is now available in the built-in Wolfram Language function FindGraphCommunities.
  • To use CommunityStructureAssignment, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
  • The assignment 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 Falsewhether edges with higher weights are preferred during matching

Examples

open allclose all

Basic Examples  (2)

This defines a small graph:

This finds that the network is grouped into two communities:

CommunityStructureAssignment has been superseded by FindGraphCommunities:

Options  (1)

Weighted  (1)

This specifies a weighted graph:

This plots the graph with edge weights shown:

This finds the community structure, ignoring edge weights:

This plots the graph, coloring the vertices based on community assignment:

This finds the community structure, taking into account the edge weights:

This plots the graph, coloring the vertices based on community assignment:

Wolfram Research (2007), CommunityStructureAssignment, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html.

Text

Wolfram Research (2007), CommunityStructureAssignment, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html.

CMS

Wolfram Language. 2007. "CommunityStructureAssignment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html.

APA

Wolfram Language. (2007). CommunityStructureAssignment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html

BibTeX

@misc{reference.wolfram_2024_communitystructureassignment, author="Wolfram Research", title="{CommunityStructureAssignment}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_communitystructureassignment, organization={Wolfram Research}, title={CommunityStructureAssignment}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/CommunityStructureAssignment.html}, note=[Accessed: 21-December-2024 ]}