You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for upstream_id inself.upstream_flow_back_from_nodes(vec![*node_id], network_path,FlowType::LayerChildrenUpstreamFlow){
4217
-
// This does a downstream traversal starting from the current node, and ending at either a node in the `delete_nodes` set or the output.
4218
-
// If the traversal find as child node of a node in the `delete_nodes` set, then it is a sole dependent. If the output node is eventually reached, then it is not a sole dependent.
// For each potential child perform a complete downstream traversal, ending at either a node in the `delete_nodes` set (excluding layer bottom inputs), the output, or a dead end.
4228
+
// If the output node is eventually reached, then it is not a sole dependent and will not be deleted
4229
+
letmut stack = vec![upstream_node];
4220
4230
letmut can_delete = true;
4221
4231
whileletSome(current_node) = stack.pop(){
4222
-
let current_node_id = current_node.node_id().expect("The current node in the delete stack cannot be the export");
0 commit comments