Skip to content

Conversation

jpintar
Copy link
Contributor

@jpintar jpintar commented Oct 12, 2025

In the definition of _create_graph, pass vertex list (i.e. list(range(adjacency.shape[0]))) to from_cudf_edgelist via the vertices keyword to avoid an error when trying to perform clustering on an adjacency matrix that contains isolated vertices. This matches support for isolated vertices in the Scanpy igraph-based implementation, where the definition of get_igraph_from_adjacency contains:

g = ig.Graph(directed=directed)
g.add_vertices(adjacency.shape[0])

I did not add any tests, since there will be no impact when used with default (i.e. UMAP-weighted) connectivities, which do not contain any isolated vertices.

Closes #474.

In `_create_graph`, pass vertex list to `from_cudf_edgelist` to avoid error when adjacency matrix contains isolated vertices.
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Oct 13, 2025
@Intron7
Copy link
Member

Intron7 commented Oct 13, 2025

@jpintar Im on PTO atm. Ill be back on the 20th

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-gpu-ci runs GPU CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEA] Add support for isolated vertices in graph for Leiden/Louvain

2 participants