minimum_spanning_tree
Compute the minimal spanning tree of an undirected graph using Kruskal or Prim, with configurable edge weights.
Instructions
Find minimum spanning tree of an undirected graph
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"graph": "<graph>"
},
"name": "minimum_spanning_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes | ||
| weight | No | weight | |
| algorithm | No | kruskal |