Skip to main content

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

Returns:

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:
Use search_graph to browse nodes and discover exact IDs.

Relationship directions

Notes

  • Requires index_graph to have been run first
  • depth=1 returns direct neighbours only; higher values traverse transitively
  • Maximum depth is 4
  • Node IDs can be discovered via search_graph