Change None to 0

This commit is contained in:
Vighnesh Birodkar
2014-10-17 00:06:12 +05:30
parent 0419c1e6f7
commit 31ecc3db86
+1 -1
View File
@@ -62,7 +62,7 @@ class RAG(nx.Graph):
def __init__(self, data=None, **attr):
nx.Graph.__init__(self, data, **attr)
self.max_id = None
self.max_id = 0
for n in self.nodes_iter():
self.max_id = max(self.max_id, n)