[PR #2785] fix: handle multiple start keys in add_edge method #2922

Closed
opened 2026-02-20 17:47:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/2785

State: closed
Merged: No


Summary

This PR fixes a bug in the add_edge method of StateGraph to handle cases
where start_key is a list of multiple start nodes.

Changes

  • Modified add_edge to support lists of start keys.
  • Updated docstrings for clarity.
  • Added unit tests for the new functionality.

Related Issues

Fixes: Node skipped during graph invocation #2775

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/2785 **State:** closed **Merged:** No --- ## Summary This PR fixes a bug in the `add_edge` method of `StateGraph` to handle cases where `start_key` is a list of multiple start nodes. ## Changes - Modified `add_edge` to support lists of start keys. - Updated docstrings for clarity. - Added unit tests for the new functionality. ## Related Issues Fixes: Node skipped during graph invocation #2775
yindo added the pull-request label 2026-02-20 17:47:47 -05:00
yindo closed this issue 2026-02-20 17:47:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2922