Read final distances and predecessors from Dijkstra. This is a small deterministic example, not solver engineering.

Example

Read final distances and predecessors from Dijkstra.

highlighted = computed this step

Step 1 — Final table

Compute the highlighted combinatorics value.

node, distance, previous((A, 0, -), (B, 2, A), (C, 3, B), (D, 4, C), (E, 7, D))\begin{array}{c|c}\text{node, distance, previous}&\hlmath{\text{((A, 0, -), (B, 2, A), (C, 3, B), (D, 4, C), (E, 7, D))}}\end{array}
combinatorics-search Every row is intentionally ordered and pinned to the lesson specification.