archy_graph_focus
Return a focused subgraph of a Python codebase centered on specified modules, with configurable depth and direction. Each node shows instability (Martin's I); each edge shows import line numbers for dependency analysis.
Instructions
Return a subgraph centered on one or more modules. Pass qualnames (e.g. 'archy.parser') or file paths. depth caps hop distance; direction is 'in' (who depends on me), 'out' (my dependencies), or 'both'. Each node carries instability (Martin's I); each edge carries the source line numbers of the import statements. Prefer this over archy_impact when you want forward dependencies, edge-level detail, or a bounded blast radius.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| modules | Yes | ||
| depth | No | ||
| direction | No | both | |
| internal_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| parse_errors | Yes | ||
| nodes | Yes | ||
| edges | Yes | ||
| unresolved | No |