Commit 367fb5e
fix: enforce consistent edge behavior across all backends
NetworkX auto-creates phantom nodes when adding edges between
non-existent nodes. SQLite stored dangling edges. Both now skip
edges where source or target nodes don't exist, matching KuzuDB's
FOREIGN KEY behavior.
All 3 backends produce identical results: same nodes, same edges.
Verified on contoso-real-estate: 2,298 nodes, 2,890 edges across
NetworkX, SQLite, and KuzuDB.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7a103d3 commit 367fb5e
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
0 commit comments