File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ def propagate(self, search_depth: int = 4) -> 'ChangePropagationTree':
176
176
177
177
self .start_leaf = ChangePropagationLeaf (network [self .start_index ], self .dsm_impact .node_network [self .start_index ])
178
178
search_stack = [self .start_leaf ]
179
- visited_nodes = set ()
180
179
end_leafs : list [ChangePropagationLeaf ] = []
181
180
182
181
while len (search_stack ) > 0 :
@@ -205,7 +204,7 @@ def propagate(self, search_depth: int = 4) -> 'ChangePropagationTree':
205
204
206
205
cpf = ChangePropagationLeaf (network [neighbour ], self .dsm_impact .node_network [neighbour ], current_leaf )
207
206
208
- if cpf .node . index not in visited_nodes and cpf . level <= search_depth :
207
+ if cpf .level <= search_depth :
209
208
search_stack .append (cpf )
210
209
211
210
return self
You can’t perform that action at this time.
0 commit comments