@shinyaz

Cyclic Graph requires explicit set_entry_point

1 min read

Adding a feedback loop (reverse edge reviewer → draft_writer) to a Graph and calling build() immediately threw a ValueError.

Output
ValueError: No entry points found - all nodes have dependencies

DAG (acyclic) graphs worked fine, but adding a cycle broke it. GraphBuilder.build() auto-detects entry points by finding nodes with no incoming edges. With cycles, all nodes have incoming edges, so detection fails.

Fix with builder.set_entry_point("draft_writer"). For cyclic graphs, you also need set_max_node_executions (prevent infinite loops) and reset_on_revisit(True) (reset state on revisit). Remember these three as a set.

Share this post

Shinya Tahara

Shinya Tahara

Solutions Architect @ AWS

I'm a Solutions Architect at AWS, providing technical guidance primarily to financial industry customers. I share learnings about cloud architecture and AI/ML on this site.The views and opinions expressed on this site are my own and do not represent the official positions of my employer.