shortest_path
Finds the shortest path between two concepts in a knowledge graph. Provide source and target labels, with an optional maximum hop limit.
Instructions
Find the shortest path between two concepts in the knowledge graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source concept label or keyword | |
| target | Yes | Target concept label or keyword | |
| max_hops | No | Maximum hops to consider | |
| project_path | No | Absolute path to a project directory containing graphify-out/graph.json. Optional — defaults to the graph this server was started with. |