Skip to content

Commit

Permalink
Add FIXME for handling isolated vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
naimnv committed Sep 27, 2023
1 parent 45a8023 commit 6e4033d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/cugraph/cugraph/community/louvain.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def louvain(G, max_level=None, max_iter=None, resolution=1.0, threshold=1e-7):
isolated_vertices = list()
if is_nx_graph_type(type(G)):
isolated_vertices = list(nx.isolates(G))
else:
# FIXME: Gather isolated vertices of G
pass

G, isNx = ensure_cugraph_obj_for_nx(G)

Expand Down

0 comments on commit 6e4033d

Please sign in to comment.