mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-02 12:41:06 +08:00
Change None to 0
This commit is contained in:
1 parent
0419c1e6f7
commit
31ecc3db86
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user