Once distances are final, each non-source router keeps the predecessor that gave its shortest path. Those predecessors form a tree rooted at A.

highlighted = computed this step

The tree starts at A

The shortest-path tree is rooted at A with distance 0.

d(A)=0d(A)=0
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Predecessors become edges

Every router except A contributes one predecessor edge, so this tree has 5 edges.

T=5|T|=5
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Read C from the tree

C sits under A with distance 2, so C's predecessor is A.

pred(C)=A\text{pred}(C)=\text{A}
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Read E from the tree

E sits under D with distance 6, matching the relaxation improvement from D.

pred(E)=D\text{pred}(E)=\text{D}
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Final distances

The recomputed final distances include D at 5, E at 6, and F at 10.

5,6,105,6,10
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A

Summary

The displayed tree is not trusted as input; each predecessor and distance is derived from the pinned topology and source.

derived shortest-path tree\text{derived shortest-path tree}
Shortest paths from AThe shortest-path tree is recomputed from the pinned topology and source.Shortest paths from A - source AAd=0Cd=2 via ADd=5 via CEd=6 via DFd=10 via DBd=4 via A