EXPERIMENTAL first local-moving level of file-backed Louvain
Source:R/massive_louvain_level.R
massive_louvain_level.RdApplies Louvain local moves to every vertex of a symmetric file-backed
UMAP fuzzy graph. The CPU route scans seeded CSR blocks and maps community
state. Metal and CUDA retain community state on the GPU and stream
bounded CSR blocks from the SSD through eight color phases. All routes
audit final modularity on the CPU. This function returns one local-moving
level; use massive_louvain() for multilevel Louvain. Mapped pages and
Metal shared buffers
can contribute to RSS, so memory_limit bounds scan buffers rather than
total process memory. Interrupted runs retain partial files for inspection
and cannot yet resume.
Usage
massive_louvain_level(
graph,
output,
max_passes = 10L,
resolution = 1,
seed = 1L,
chunk_rows = NULL,
memory_limit = "1GB",
backend = "cpu",
n.cores = 1L
)Arguments
- graph
A result of
massive_umap_fuzzy_graph().- output
New path for one-based
uint32cluster labels.- max_passes
Maximum local-moving sweeps.
- resolution
Positive modularity resolution.
- seed
Nonnegative seed controlling the scan start of each pass.
- chunk_rows
Maximum consecutive CSR rows per scan block. The default is 8,192 on CPU/CUDA and 65,536 on Metal; the edge budget may shorten a block.
- memory_limit
RAM budget for graph scan buffers.
- backend
"cpu","cuda", or"metal"for one graph level.- n.cores
CPU workers for bounded row-candidate preparation.