From 0b1a03de863db9c5ca09bf575daee7249ee99a9c Mon Sep 17 00:00:00 2001
From: Jarrod Pas <j.pas@usask.ca>
Date: Thu, 20 Jul 2017 15:32:58 -0600
Subject: [PATCH] Fixes bug in global popularity calculation

---
 pydyton/communities.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pydyton/communities.py b/pydyton/communities.py
index 7e49ab0..da9c2b8 100644
--- a/pydyton/communities.py
+++ b/pydyton/communities.py
@@ -79,8 +79,8 @@ class EpochCommunity:
         if node not in self.old_graph:
             return 0
 
-        edges = elf.old_graph[node]
-        community = seld[node]
+        edges = self.old_graph[node]
+        community = self[node]
         return sum([
             edge['duration']
             for other, edge in edges.items()
-- 
GitLab