Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡️ Speed up method
Graph.find_runnable_predecessors_for_successor
b…
…y 129% in PR #6309 (`fix-order-loop`) (#6310) * feat: add is_loop property to Vertex class for detecting looping outputs * feat: improve vertex runnability logic for graph traversal - Update `is_vertex_runnable` to handle loop vertices more robustly - Modify `are_all_predecessors_fulfilled` to better manage cycle dependencies - Change adjacency maps to use sets for more efficient predecessor/successor tracking * ⚡️ Speed up method `Graph.find_runnable_predecessors_for_successor` by 129% in PR #6309 (`fix-order-loop`) Here's the optimized version of the program. ### Changes and Optimizations. * fix(serialization.py): update isinstance check for list and tuple to use union operator for better type checking --------- Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]> Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
- Loading branch information