twining_neighbors
Traverse a knowledge graph from a specified entity to find its neighbors up to three levels deep. Filter results by relation type to understand how entities connect.
Instructions
Traverse the knowledge graph from an entity, returning neighbors up to a given depth (max 3). Supports filtering by relation type. Useful for understanding how entities connect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Traversal depth (1-3, default: 1) | |
| entity | Yes | Entity ID or name to start traversal from | |
| relation_types | No | Filter to only these relation types |