Switch downstream nodes removal algorithm #235
Unanswered
justin0108
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was looking through the ZEN engine (0.26) code and cannot understand the reason for the need to remove the nodes from the
source
. I can understand the need for removal so that the downstream nodes do not wait for input that will never arrive. However I am puzzle about this portion remove fromsource
I have debug and step through the codes and it seems that this portion removing from
target
is sufficient to remove those dead nodes and branches. I have also tried commenting out the removal fromsource
and it still worksI have added some
println!
and as seen, the removal is duplicated (though it will not be a concern becauseremove_node
will returnNone
if not found)It is more purely for my understand what kind of switch graph need a removal from
source
? It could be my graph is too simple. This is a sample of my graphI have also attached the JDM for reference
switch-simple.json
Beta Was this translation helpful? Give feedback.
All reactions