dijkstra_path
Finds the shortest path between two nodes in a weighted graph using Dijkstra's algorithm, with optional directed-graph support.
Instructions
Find the shortest path between two nodes in a weighted graph (Dijkstra's algorithm).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Array of [from, to, weight] triples. | |
| source | Yes | Source node name. | |
| target | Yes | Target node name. | |
| directed | No | Treat graph as directed (default false). |