Returns a vector of partition indices.
RunLeiden(
object,
method = deprecated(),
leiden_method = c("leidenbase", "igraph"),
partition.type = c("RBConfigurationVertexPartition", "ModularityVertexPartition",
"RBERVertexPartition", "CPMVertexPartition", "MutableVertexPartition",
"SignificanceVertexPartition", "SurpriseVertexPartition"),
leiden_objective_function = c("modularity", "CPM"),
initial.membership = NULL,
node.sizes = NULL,
resolution.parameter = 1,
random.seed = 1,
n.iter = 10
)An adjacency matrix or adjacency list.
DEPRECATED.
Choose from the leidenbase ("leidenbase") or igraph ("igraph") packages for running leiden. Default is "leidenbase"
Type of partition to use for Leiden algorithm. Defaults to "RBConfigurationVertexPartition", see https://cran.rstudio.com/web/packages/leidenbase/leidenbase.pdf for more options.
objective function to use if `leiden_method = "igraph"`.
See cluster_leiden for more information.
Default is "modularity".
Passed to the `initial_membership` parameter of `leidenbase::leiden_find_partition`.
Passed to the `node_sizes` parameter of `leidenbase::leiden_find_partition`.
A parameter controlling the coarseness of the clusters for Leiden algorithm. Higher values lead to more clusters. (defaults to 1.0 for partition types that accept a resolution parameter)
Seed of the random number generator, must be greater than 0.
Maximal number of iterations per random start
igraph-based leiden clustering is adapted from cluster_graph_leiden
(MIT License), author: Benjamin Parks. Reordering of igraph leiden cluster numbers by
cluster size adapted from rliger v2.0 `.labelClustBySize` (GPL-3.0 License) authors:
Josh Welch & Yichen Wang