restored n_nodes (formerly pop_size)
@@ -80,6 +80,12 @@ class TransTree(sc.prettyobj):
return 0
+ @property
+ def n_nodes(self):
+ ''' Count the number of non-None nodes in the graph '''
+ return sum(x is not None for x in self.graph.nodes)
+
+
@property
def transmissions(self):
"""
