|
Algorithm 1 MST calculation. |
-
1:
Distances
-
2:
Communicables
-
3:
MST_Graph
-
4:
MST_Nodes
-
5:
while
do
-
6:
for all
MST_Nodes do
-
7:
Candidates
-
8:
for all
Candidates do
-
9:
if ∃ MST_Nodes = Candidates
then
-
10:
MST_Graph
-
11:
MST_Graph
-
12:
else
-
13:
Curr_Distance
-
14:
if Curr_Distance < Best_Distance then
-
15:
Best_Distance = Curr_Distance
-
16:
Best_Candidate = Candidates
-
17:
Best_Source = MST_Nodes
-
18:
end if
-
19:
end if
-
20:
end for
-
21:
end for
-
22:
MST_Nodes
-
23:
MST_Graph
-
24:
MST_Graph
-
25:
end while
|