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

View source: R/madantextnetwork.r

Community.Detection.MembershipR Documentation

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)

Arguments

network

A graph object.

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.

Examples

## Not run: 
  network <- make_graph("Zachary")
  membership_info <- Community.Detection.Membership(network)
  print(membership_info)

## End(Not run)

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