twining_neighbors
Traverse a knowledge graph from any entity to discover connected neighbors up to three hops away, with optional filtering by relation type to understand entity relationships.
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 |
|---|---|---|---|
| entity | Yes | Entity ID or name to start traversal from | |
| depth | No | Traversal depth (1-3, default: 1) | |
| relation_types | No | Filter to only these relation types |