Skip to main content

backlinks

Function backlinks 

Source
pub fn backlinks(store: &Store, path: &Path) -> Result<Vec<PathBuf>, StoreError>
Expand description

Incoming edges to path: files that wiki-link to it. The blast-radius / dependents primitive before an edit. Store-wide (every layer / every type); see backlinks_filtered for the --type / --in-scoped form.

path is the store-relative target as it would be written inside a wiki-link (with or without a trailing .md; both resolve to the same target). Returns each linking file as its canonical bare wiki-link path (store-relative, no .md) — the same key forwardlinks emits, so the two directions round-trip and neighborhood can use one node identity. Deduped, sorted, never including the seed itself.