Skip to content
Snippets Groups Projects
Commit 4344252c authored by Jarrod Pas's avatar Jarrod Pas
Browse files

Fixes communuty for nodes with no community

parent 2d6ae20f
No related branches found
No related tags found
2 merge requests!3Version 0.2,!1Full rewrite
......@@ -129,7 +129,7 @@ class Community:
If the node has no community it is it's own all alone.
"""
if node not in self._community:
self._community[node] = frozenset(list(node))
self._community[node] = frozenset(list([node]))
return self._community[node]
def local_popularity(self, node):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment