Commit ae5147d9 authored by Yoann Dufresne's avatar Yoann Dufresne
Browse files

bugfix: stop removing nodes when no community is detected

parent 90276b3f
......@@ -16,7 +16,7 @@ def local_deconvolve(G,node, verbose=0):
communities = get_communities(G_neighbors, max_overlap=0, verbose=verbose-1)
# Continue only if something need to be splited.
if len(communities) == 1:
if len(communities) <= 1:
if verbose > 0:
print("node",node,nei_len,"neighbors")
print("No split\n")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment