Explanation of minimal spanning tree

The table below shows the order in which nodes are added to the minimal spanning tree rooted at node 0. In each iteration, a new node is added to the tree, and the distance to that node from all nodes adjacent to it are updated. Refresh the page to see another randomly generated unweighted graph.

0123456789
0infinfinfinfinfinfinfinfinf
0infinfinfinf19infinf4
0infinfinfinf19inf84
07infinf1919inf84
07infinf1911inf84
0712inf8111684
071inf8111184
071inf811784
07115811784
07115811784