mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 13:11:14 +08:00
Change None to 0
This commit is contained in:
@@ -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