cluster_by_igraph.RdCluster similarity matrix by graph community detection methods
cluster_by_igraph(mat,
method = c("cluster_fast_greedy",
"cluster_leading_eigen",
"cluster_louvain",
"cluster_walktrap"),
...)The similarity matrix.
The community detection method.
Other arguments passed to the corresponding community detection function, see Details.
The symmetric similarity matrix can be treated as an adjacency matrix and constructed as a graph/network with the similarity values as the weight of hte edges. Thus, clustering the similarity matrix can be treated as detecting clusters/modules/communities from the graph.
Four methods implemented in igraph package can be used here:
cluster_fast_greedyuses cluster_fast_greedy.
cluster_leading_eigenuses cluster_leading_eigen.
cluster_louvainuses cluster_louvain.
cluster_walktrapuses cluster_walktrap.
A vector of cluster labels (in numeric).
# There is no example
NULL
#> NULL