codegraph_affected
Find all nodes affected by changing a given node—callers, importers, inheritors—via BFS. Use before refactoring to understand blast radius, returning affected nodes with file paths and relation types.
Instructions
BFS traversal: given a node name, find every node that would be affected if you change it — callers, importers, inheritors, etc. Use before refactoring to understand blast radius. Returns affected nodes with file paths, relation types, and traversal depth.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name, ID, or file path to start from | |
| path | Yes | Project root | |
| depth | No | BFS depth (default 2, max 5) |