Explanation of the shortest path tree

The table below shows the shortest path tree from node 0 to all other nodes in the graph. 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. The shortest path from a node to the source node 0 is entirely within this (growing) tree. Refresh the page to see another randomly generated unweighted graph.

0123456789
0infinfinfinfinfinfinfinfinf
08infinfinf33infinf12
08infinf6337inf6
06infinf6337inf6
06inf226337inf6
06inf226337inf6
0624226337266
0624226337266
0624226337266
0624226337266

The order in which the shortest paths are added: 0, 5, 6, 1, 4, 9, 7, 3, 2, 8.