Get Subgraph
get_subgraphRetrieve a node and its connected neighborhood up to a specified depth, with optional filters for node and edge types.
Instructions
Retrieve a node and its N-hop neighborhood (nodes and connecting edges).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traversed neighborhood depth. Default 2, maximum 5. | |
| project | No | Optional project identifier. | |
| root_id | Yes | The starting node ID. | |
| edge_types | No | Optional edge types to traverse. If omitted, all types are traversed. | |
| node_types | No | Optional node types to include in returned set. |