The new government of the archipelago of Sealand has decided to join six islands by bridges to connect them directly. The cost of building a bridge depends on the distance between the islands. This table shows the distances between islands:
B C D E F
A 5 6 4 3 7
B − 2 4 8 5
C − − 4 8 8
D − − − 2 5
E − − − − 4
The government wants to build a bridge system so that the total cost of the work is minimal.
a) Using graph theory, finding bridges to be constructed so that the total cost of the work is minimal.
b) Suppose the capital is on the island B and can only build a bridge between two islands if any of these previously communicates with the capital (machinery has to be transported through the bridges). In what order should build bridges?
I solved a) With Kruskal, so I have bridges from AE, DE, BC, BD, EF with 15 total cost . But I don't know how to solve b). Could you help me
For part b, you only need to order the edges away from $B$ (as far as I can see). $BD$ must be built before $DE$, for example.