Skip to contents

[Experimental] Same engine and parameters as rs_leiden_clustering(), but on the graph behind the pointer, so nothing is flattened into R vectors. Louvain is refine = FALSE.

Usage

rs_graph_leiden(ptr, leiden_params)

Arguments

ptr

External pointer to the Rust graph.

leiden_params

List. See rs_leiden_clustering().

Value

Integer vector with the 1-based community of each node; 1 is the largest community.