19.11 The following is a high-level description of the pseudocode for MSTDistributed.
procedure MSTDistributed(G)
Model: A weighted distributed network G, with
Input: each node knows its weighted adjacency list
Output: each node knows its children list in the minimum spanning tree
delete uv from List of Children
endif
endif
if v:LeaderStatus = .true. then
v:Leader ← v:UID
minimum cost edges from all nodes in their tree, and then compute minimum
cost edge amongst all minimum cost edges received.
if v:LeaderStatus = .true. then
if no minimum cost edge received then
finnished ← .true.