This option finds a minimum cost set of links that connect all the nodes together
The first line specifies the calculation required. It must contain
format spans
Specify name of node used as the root of the spanning tree. If unspecified, an arbitrary root node will be selected.
input format spans l 1 2 1 l 2 3 1 l 2 4 10 l 4 3 1 graph links (2,1,1) (2,3,1) (2,4,10) (3,4,1) span links (2,1,1) (2,3,1) (3,4,1)
Prim's Algorithm
There was an error while loading. Please reload this page.