Run Leiden clustering with version-compatible resolution argument.
Usage
run_igraph_leiden(graph, ...)
Arguments
- graph
An igraph object representing the graph to cluster.
- ...
Additional arguments passed to cluster_leiden(), such as
objective_function, resolution_parameter, beta, initial_membership,
and n_iterations.
Value
A clustering object returned by cluster_leiden().
Details
This function wraps igraph::cluster_leiden() and ensures compatibility
with both older (<2.1.0) and newer versions of the igraph package by renaming
the resolution_parameter argument to resolution if needed.