Learn R Programming

MadanTextNetwork (version 0.1.0)

cluster.graph: Cluster a Graph and Extract Largest Component

Description

This function applies clustering to a graph and extracts the largest connected component.

Usage

cluster.graph(network)

Value

A list containing three elements: 'gr' with the largest connected component of the graph, 'cl' with a data frame of nodes and their cluster membership, and 'node.impo' with a data frame of node importance measures like degree, closeness, and betweenness.

Arguments

network

A graph object.

Examples

Run this code
if (FALSE) {
  # Assuming 'network' is a predefined graph object
  cluster.graph(network)
}

Run the code above in your browser using DataLab