View source: R/cluster-metrics.R
| cluster_quality | R Documentation |
Computes per-cluster and global quality metrics for network partitioning. Supports both binary and weighted networks.
cluster_quality(x, clusters, weighted = TRUE, directed = TRUE)
cqual(x, clusters, weighted = TRUE, directed = TRUE)
x |
Adjacency matrix (numeric) |
clusters |
Cluster specification (named list, data frame, or membership
vector; see |
weighted |
Logical; if TRUE (default), use edge weights; if FALSE, binarize the matrix first |
directed |
Logical; if TRUE (default), treat as directed network |
A cluster_quality object (a list) with:
per_cluster |
Data frame, one row per cluster, with columns
|
global |
List with |
Newman, M. E. J., & Girvan, M. (2004). Finding and evaluating community structure in networks. Physical Review E, 69(2), 026113. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1103/PhysRevE.69.026113")}
clusters <- list(C1 = c("Explore", "Reflect", "Discuss"),
C2 = c("Plan", "Create", "Share"),
C3 = c("Monitor", "Adapt", "Synthesize", "Evaluate"))
cluster_quality(regulation_net, clusters = clusters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.