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

same community has infinite cbc

parent 95f9eabf
No related branches found
No related tags found
1 merge request!3Version 0.2
......@@ -34,7 +34,7 @@ class EpochCommunity(TickProcess):
edge['start'] = -1
def next_epoch(self, now):
self.community = defaultdict(frozenset)
self.community = {}
edges_to_keep = []
self.cache_clear()
......@@ -103,7 +103,7 @@ class EpochCommunity(TickProcess):
def get_cbc(self, c_x, c_y):
''''''
if c_x == c_y:
return 0
return float('inf')
g = self.old_graph
return sum([
g[x][y]['duration']
......
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