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
0infinfinfinfinf1819infinf
0inf273234inf181931inf
0inf273234inf181931inf
0inf273234inf18193146
051273234inf18193132
051273234inf18193132
0512732343518193132
0512732343518193132
0512732343518193132

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