Closed GillesVandewiele closed 4 years ago
Hello,
I hope your issue is solved with https://github.com/taynaud/python-louvain/pull/46
I will make a release soon to include this patch.
Keep in mind that python, networkx and this package are not very memory efficient and you may need alternative for very large graphs
It definitely looks like it. Moreover, my patch will always return the same permutation (the first element of the generator, which is deterministic). The proposed solution will always return a different solution, which is probably better.
We have been getting
MemoryError
s when applying the community detection on large graphs (a few hundred thousands of nodes). The problem appeared to be in thenp.random.permutation
call. We managed to fix this by applying a dirty patch which switches the np.random.permutation to use itertools.permutations:This is of course far from a clean solution, as the random_state is no longer used.