| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|---|---|---|---|---|---|---|---|---|---|
| 0 | inf | inf | inf | inf | inf | inf | inf | inf | inf |
| 0 | inf | 4 | 6 | 16 | inf | 10 | 11 | inf | inf |
| 0 | 11 | 4 | 6 | 16 | inf | 10 | 11 | inf | 22 |
| 0 | 10 | 4 | 6 | 16 | inf | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
| 0 | 10 | 4 | 6 | 16 | 22 | 10 | 11 | 9 | 22 |
The order in which the shortest paths are added: 0, 2, 3, 8, 1, 6, 7, 4, 5, 9.