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

View source: R/madantextnetwork.r

Community.Detection.PlotR Documentation

Plot Community Detection in a Graph

Description

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

Usage

Community.Detection.Plot(network)

Arguments

network

A graph object.

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.

Examples

## Not run: 
  # Assuming 'network' is a predefined graph object
  # network <- make_graph("Zachary")
  Community.Detection.Plot(network)

## End(Not run)

MadanTextNetwork documentation built on May 29, 2024, 9:38 a.m.