def large_community (tokeniser): large_communities = LargeCommunities() value = tokeniser() if value == '[': while True: value = tokeniser() if value == ']': break lc = _large_community(value) if lc in large_communities.communities: continue large_communities.add(lc) else: large_communities.add(_large_community(value)) return large_communities
def large_community(tokeniser): large_communities = LargeCommunities() value = tokeniser() if value == '[': while True: value = tokeniser() if value == ']': break lc = _large_community(value) if lc in large_communities.communities: continue large_communities.add(lc) else: large_communities.add(_large_community(value)) return large_communities