We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9b67e commit 027e37dCopy full SHA for 027e37d
cpm/models.py
@@ -176,7 +176,6 @@ def propagate(self, search_depth: int = 4) -> 'ChangePropagationTree':
176
177
self.start_leaf = ChangePropagationLeaf(network[self.start_index], self.dsm_impact.node_network[self.start_index])
178
search_stack = [self.start_leaf]
179
- visited_nodes = set()
180
end_leafs: list[ChangePropagationLeaf] = []
181
182
while len(search_stack) > 0:
@@ -205,7 +204,7 @@ def propagate(self, search_depth: int = 4) -> 'ChangePropagationTree':
205
204
206
cpf = ChangePropagationLeaf(network[neighbour], self.dsm_impact.node_network[neighbour], current_leaf)
207
208
- if cpf.node.index not in visited_nodes and cpf.level <= search_depth:
+ if cpf.level <= search_depth:
209
search_stack.append(cpf)
210
211
return self
0 commit comments