bfs
Retrieve related entities by traversing from a starting entity to a specified depth using breadth-first search.
Instructions
BFS traversal from a starting entity.
Args: start_entity_id: Entity ID to start from. max_depth: Max traversal depth (1-10).
Returns: List of (entity_id, name, type, depth) entries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| start_entity_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |