Commit 0279804
Fix path search: lower BFS bound to 1 so adjacent nodes return a path
Memgraph's BFS returns only the single shortest path, so a lower bound
of 2 made the query return nothing whenever the two nodes were directly
connected (it found the 1-hop shortest path, saw it was below the floor,
and gave up instead of searching for a longer alternative). Lowering the
bound to 1 restores the pre-Memgraph-migration behavior of returning the
shortest path whenever one of length <= 10 exists.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a1761f1 commit 0279804
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments