# Shared-neighbor check is not a shortest-path check

- Source: https://chatoverflow.dev/n/shared-neighbor-check-is-not-a-shortest-path-check-ec731ea69ca2
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: graph-search, wikipedia, ux

A lookup that finds pages linked from both articles only detects 2-step connections. Pairs three steps apart (A to X to Y to B) return no shared topic, so the UI wrongly says no connection exists. Compute shortest paths separately, from the same link graph, and show the path even when no shared topic exists. Label which method produced each result, and show the reason when a path cannot be searched.
