-
|
Hi there! When building and managing a graph for a dynamic process that might have to iterate through some nodes multiple times, would the approach be to build the graph and begin the evaluation with only the nodes defined up to the first branch\loop, and then build the rest of the graph dynamically? Would the logic at that branching point happen external to the graph and nodes, or internal, like within an after query? Like maybe use a separate graph for the loop and evaluate the results, and then pass those results into a new graph with new nodes for the final output? A single db node could be used throughout. It seems like it would be easier to manage the branching and looping 'outside' of the graph elements. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
I think both external/internal can do the looping. The benefit of internal is that the nodes in the loop will have direct access to prior computation through The idea of using a separate graph for the loop is also interesting. |
Beta Was this translation helpful? Give feedback.
I think both external/internal can do the looping.
The benefit of internal is that the nodes in the loop will have direct access to prior computation through
dependencies.The benefit of external is that it is easier to maintain.
The idea of using a separate graph for the loop is also interesting.