get_neighbors
Fetches a subgraph of neighbors reachable from a node ID within a set number of hops, with direction and edge filters to explore only relevant connections.
Instructions
id 로부터 depth 홉 이웃 서브그래프 ([5-B]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| depth | No | 홉 수 (서버 상한 3 — hop 확장은 폭발적). | |
| direction | No | 홉마다 엣지 방향을 어떻게 따를지 ([4] source/target). 'both'=무방향(기본), 'out'=나가는 엣지(id→…)만, 'in'=들어오는 엣지(…→id)만. directed=False 엣지는 방향이 없어 in/out 양쪽에서 따라간다. | both |
| max_nodes | No | 이웃 노드 상한. 초과하면 잘라내고 truncated=true. | |
| edge_filter | No | 이 필터를 통과하는 엣지만 따라간다 ([6]). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||