floyd_warshall
Computes all-pairs shortest paths in weighted graphs, supporting directed or undirected edges.
Instructions
Compute all-pairs shortest paths using Floyd-Warshall.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | Array of weighted edges | |
| directed | No | Treat as directed graph (default true) |