Learn R Programming

MadanTextNetwork (version 0.1.0)

Community.Detection.Plot: Plot Community Detection in a Graph

Description

This function applies community detection to a graph and plots the result.

Usage

Community.Detection.Plot(network)

Value

A plot visualizing the graph with nodes colored according to their community membership. The plot also displays the modularity score as a sub-title, indicating the strength of the community structure.

Arguments

network

A graph object.

Examples

Run this code
if (FALSE) {
  # Assuming 'network' is a predefined graph object
  # network <- make_graph("Zachary")
  Community.Detection.Plot(network)
}

Run the code above in your browser using DataLab