Skip to main content

Module traverse

Module traverse 

Source
Expand description

Graph traversal โ€” recursive depth-first with cycle detection.

Functionsยง

format_traversal
Format a traversal tree as an indented string for display.
traverse
Traverse the graph from a named entity up to a given depth. Skips superseded relationships (valid_until IS NOT NULL).
traverse_filtered
Traverse with an optional entity type filter. When type_filter is set, only neighbors matching that type are expanded.