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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph | Yes | ||
| weight | No | weight | |
| algorithm | No | kruskal |