Overview
Returns the immediate (or multi-hop) structural neighbourhood of a given node in the knowledge graph. Use this to navigate the codebase: find what a function calls, what calls it, what it imports, and what class it belongs to.Parameters
Example
Finding node IDs
Node IDs are auto-generated from the file path and symbol name (e.g.store_vectorstore, auth_authenticate_user). You can pass a label substring instead and VecGrep will find the closest match:
search_graph to browse nodes and discover exact IDs.
Relationship directions
Notes
- Requires
index_graphto have been run first depth=1returns direct neighbours only; higher values traverse transitively- Maximum depth is 4
- Node IDs can be discovered via
search_graph
