From 6e4033d6f9a45e028fa94d39d3893041cfa0d267 Mon Sep 17 00:00:00 2001 From: Md Naim Date: Wed, 27 Sep 2023 06:53:12 -0700 Subject: [PATCH] Add FIXME for handling isolated vertices --- python/cugraph/cugraph/community/louvain.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/cugraph/cugraph/community/louvain.py b/python/cugraph/cugraph/community/louvain.py index f7798a8efbf..a37fe8d638f 100644 --- a/python/cugraph/cugraph/community/louvain.py +++ b/python/cugraph/cugraph/community/louvain.py @@ -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)