Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for cycles in graph #3295

Closed
wants to merge 54 commits into from

Conversation

ogabrielluiz
Copy link
Contributor

@ogabrielluiz ogabrielluiz commented Aug 12, 2024

This PR adds support for cyclic graphs by setting a start component and postponing a dependency resolution if it is part of a cyclic edge.

It implements logic to instantiate two different types of edges: Edge and CycleEdge, and updates many ordering functions to make sure they have a stop condition.

Implement functions to check for cycles in a directed graph and find cycle
edges starting from a specific vertex. Also, include a function to find all edge
cycles in a directed graph.
- Added flow_id variable to store the graph's flow_id
- Improved error handling and logging in build method
- Added conditional log_transaction calls based on flow_id
- Handled cases for normal and contract edges in build method
- Avoided unnecessary log_vertex_build import
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels Aug 12, 2024
Copy link
Contributor

github-actions bot commented Aug 13, 2024

Detected 1 changes to dependencies in Poetry lockfile

Added pytest-flakefinder (1.1.0)

(1 added, 0 removed, 0 updated, 477 not changed)

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Aug 13, 2024
@ogabrielluiz ogabrielluiz force-pushed the feat-add-support-for-cycles-in-graph branch from 8e73965 to ff78520 Compare August 13, 2024 21:12
@ogabrielluiz ogabrielluiz force-pushed the feat-add-support-for-cycles-in-graph branch from 49e7f00 to bffac9b Compare August 13, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant