File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ def cycle_nodes(self):
153
153
indirect_parents = []
154
154
ss = s
155
155
anticipating_nodes = set ()
156
+ on_the_way_back = False
156
157
157
158
while True :
158
159
# check if there is any non isolated nodes
@@ -200,6 +201,7 @@ def has_cycle(self):
200
201
indirect_parents = []
201
202
ss = s
202
203
anticipating_nodes = set ()
204
+ on_the_way_back = False
203
205
204
206
while True :
205
207
# check if there is any non isolated nodes
@@ -368,6 +370,7 @@ def cycle_nodes(self):
368
370
indirect_parents = []
369
371
ss = s
370
372
anticipating_nodes = set ()
373
+ on_the_way_back = False
371
374
372
375
while True :
373
376
# check if there is any non isolated nodes
@@ -415,6 +418,7 @@ def has_cycle(self):
415
418
indirect_parents = []
416
419
ss = s
417
420
anticipating_nodes = set ()
421
+ on_the_way_back = False
418
422
419
423
while True :
420
424
# check if there is any non isolated nodes
You can’t perform that action at this time.
0 commit comments