leon-thomm / Ryven

Flow-based visual scripting for Python
https://ryven.org
MIT License
3.76k stars 439 forks source link

Is there a way to know that a graph traversal is done? #152

Closed ArEnSc closed 1 year ago

ArEnSc commented 1 year ago

I am trying to figure out how to synchronize my, my graph execution with async nodes, there doesn't appear to be a way to figure out when the traversal of the graph has ended

ArEnSc commented 1 year ago

I am thinking that might be impossible since it seems like there isn't a list of edges stored or a list of visited nodes or nodes to visit

leon-thomm commented 1 year ago

What graph traversal do you mean? A graph execution will be done when the source (the first updating node) has finished its update_event().

ArEnSc commented 1 year ago

What graph traversal do you mean? A graph execution will be done when the source (the first updating node) has finished its update_event().

ArEnSc commented 1 year ago

What graph traversal do you mean? A graph execution will be done when the source (the first updating node) has finished its update_event().

right because it's tracing the whole chain of nodes so if it's an exec node it has to go back to the source ?