View source: R/madantextnetwork.r
cluster.graph | R Documentation |
This function applies clustering to a graph and extracts the largest connected component.
cluster.graph(network)
network |
A graph object. |
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.
## Not run:
# Assuming 'network' is a predefined graph object
cluster.graph(network)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.