twining_neighbors
Traverse the knowledge graph from an entity to find connected neighbors up to depth 3, filtering by relation type to reveal how entities relate.
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 |