Skip to main content

Module relations

Module relations 

Source
Expand description

PART_OF hierarchy traversal โ€” ancestors and descendants.

Functionsยง

ancestors
Get all ancestors of an entity via PART_OF chain (with cycle detection). Returns ancestors from immediate parent to root, same-mem only.
compute_file_path
Compute file path for an entity based on its PART_OF ancestry. Path is: grandparent/parent/entity-name.md (reversed ancestor chain).
descendants
Get all descendants of an entity via PART_OF hierarchy (BFS). Uses incoming PART_OF edges to find children. Same-mem only.