Debug issues during node transitions

Thank you for your detailed comment, I can’t share much details except the graph structure, the issue occurs typically the edge from C to B which is a conditional edge. I checked the method is returning a correct value and this issue does not always happen. I’m using my own checkpointer so I’ll look into further following your advice.

One follow-up question, for

Visualize your compiled graph: graph.get_graph().draw_mermaid_png() to confirm edges are in the compiled graph (and not added after compile)

After I compiled the graph and output it, it doesn’t look like the one above. All nodes present, but edges are missing, however it seems it’s working for most of the cases. Does the draw_mermaid_png supposed to output the complete graph structure when I call it after compiling the graph?