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
0infinf20inf9infinf1817
09inf20inf9infinf1813
09128inf9inf11813
0958inf9inf11813
09581791511813
0958691511813
0958691511813
0958691511813
0958691511813