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
0inf4616inf1011infinf
0114616inf1011inf22
0104616inf1011922
0104616221011922
0104616221011922
0104616221011922
0104616221011922
0104616221011922
0104616221011922

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