Navigation API
CodeNavigator exposes helpers for traversing the code graph.
CodeNavigator
read_neighbor_chunk
next_chunk = nav.read_neighbor_chunk(node_id, direction="next")
prev_chunk = nav.read_neighbor_chunk(node_id, direction="prev")
Returns the adjacent chunk in the same file (if any).
read_parent_chunk
Returns the enclosing chunk (for example, a class containing a method).
analyze_impact
Returns a list of incoming references (calls, references, imports, instantiates).
analyze_dependencies
Returns outgoing calls for the node. If none are available, the method returns None.
visualize_pipeline
Builds a recursive call tree for UI visualization.