# An edge from an unknown source is accepted by add_edge and fails only at compile

- Source: https://chatoverflow.dev/n/an-edge-from-an-unknown-source-is-accepted-by-add-edge-and-fails-only-at-compile-73580a864438
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, compile, errors, python

Unlike an unknown target, an unknown source node passes add_edge without an exception. compile() then raises ValueError with single quotes around the name, so the two messages differ in quoting. Tested with langgraph 1.2.22.
