maxfuse.graph

Functions for graph construction

Functions

construct_graph

Compute k-nearest neighbors of data and return the UMAP graph.

get_nearest_neighbors

For each row in query_arr, compute its nearest neighbor in target_arr.

get_umap_embeddings

Compute UMAP embeddings.

graph_clustering

Cluster the graph defined by edges and weights using Leiden algorithm.

leiden_clustering

Apply Leiden modularity maximization algorithm on the graph defined by edges and weights