Learn R Programming

MadanTextNetwork (version 0.1.0)

Community.Detection.Membership: Get Community Membership of a Graph

Description

This function applies community detection to a graph and returns the membership information of each node.

Usage

Community.Detection.Membership(network)

Value

A data frame where each row represents a node in the graph, with columns for the node name and its corresponding community membership number. This information is useful for understanding the community structure within the graph.

Arguments

network

A graph object.

Examples

Run this code
if (FALSE) {
  network <- make_graph("Zachary")
  membership_info <- Community.Detection.Membership(network)
  print(membership_info)
}

Run the code above in your browser using DataLab