clusterGraph | R Documentation |
Topological graph clustering methods.
clusterGraph(graph, type = "wtc", HM = "none", size = 5, verbose = FALSE, ...)
graph |
An igraph object. |
type |
Topological clustering methods. If |
HM |
Hidden model type. Enables the visualization of the hidden
model, gHM. If set to "none" (default), no gHM igraph object is saved.
For each defined hidden module:
(i) if |
size |
Minimum number of nodes per module. By default, a minimum number of 5 nodes is required. |
verbose |
A logical value. If FALSE (default), the gHM igraph will not be plotted to screen, saving execution time (they will be returned in output anyway). |
... |
Currently ignored. |
If HM is not "none" a list of 2 objects is returned:
"gHM", subgraph containing hidden modules as an igraph object;
"membership", cluster membership vector for each node.
If HM is "none", only the cluster membership vector is returned.
Mario Grassi mario.grassi@unipv.it
Fortunato S, Hric D. Community detection in networks: A user guide (2016). Phys Rep; 659: 1-44. <https://dx.doi.org/10.1016/j.physrep.2016.09.002>
Yu M, Hillebrand A, Tewarie P, Meier J, van Dijk B, Van Mieghem P, Stam CJ (2015). Hierarchical clustering in minimum spanning trees. Chaos 25(2): 023107. <https://doi.org/10.1063/1.4908014>
clusterScore
, cplot
# Clustering ALS graph with WTC method and LV model
G <- properties(alsData$graph)[[1]]
clv <- clusterGraph(graph = G, type = "wtc", HM = "LV")
gplot(clv$gHM, l = "fdp")
table(clv$membership)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.