The vault.
One of from / from_title and one of to / to_title
required. max_depth defaults to 5. include_alternatives defaults
to false. follow_embeds defaults to true (include ![[embeds]] as
edges).
A FindPathResult. When found: false, path: [] and
hops: -1.
Find the shortest wikilink-graph path between two notes via BFS.
Multi-hop graph traversal — closes the gap the competitive audit surfaced ("find paths between concepts" was the most-praised graph feature in competitor plugins). Returns the shortest path up to
max_depthhops; withinclude_alternatives: true, also returns up to 10 same-length alternatives (useful for "show me different connections").Uses the shared
EntryIndex(basename → entries map) for O(1) target resolution per hop, so repeat calls in a session reuse the index. v1.8.1 perf fix: builds arelPath → entrymap once before BFS (pre-fix was O(N²) per visited node).