Symmetrize an experimental disk-backed UMAP graph
Source:R/massive_graph.R
massive_umap_fuzzy_graph.RdExternally sorts directed membership pairs in bounded native buffers,
applies fuzzy union, and writes a symmetric weighted CSR graph and a
content-hashed manifest. With sort_method = "bucketed", distances
from a KNN graph are converted to memberships while routing pairs into
bounded vertex buckets; no directed weight file is written. The bucketed
path does not yet support checkpoints. Both sorts are CPU-only.
Use massive_fuzzy_graph() after a restart.
Usage
massive_umap_fuzzy_graph(
x,
output,
memory_limit = fastembedr_memory_option(),
backend = "cpu",
checkpoint = FALSE,
resume = FALSE,
checkpoint_every = 100L,
sort_method = c("global", "bucketed"),
consume_knn = FALSE
)Arguments
- x
Directed memberships from
massive_umap_memberships()for the global sort, or KNN distances frommassive_knn_graph()for the bucketed sort.- output
New prefix for
.offsets.u64,.indices.u32, and.weights.f32output files.- memory_limit
RAM budget for external sorting, at least 64 MB. When omitted, uses
options(memory_limit = ...), or detected available RAM.- backend
Only
"cpu"is currently supported.- checkpoint
Save completed sorted-pair runs for resume.
- resume
Continue a matching interrupted graph sort.
- checkpoint_every
Save progress after this many input blocks.
- sort_method
Global restartable sort or lower-SSD bucketed sort.
- consume_knn
Explicitly delete package-built KNN files after bucket staging. The KNN graph cannot then be reused or resumed; rebuilding it is required if later graph construction fails.