We pop the edge with the lowest weight, "s" - "b" (4), and look at the edges leaving node "b" (adding
its accumulated distance of 4):
- Leaving node "b" and entering node "e" with weight 1 (Total: 4 + 1 = 5)
- Leaving node "b" and entering node "f" with weight 3 (Total: 4 + 3 = 7)
- Leaving node "b" and entering node "a" with weight 6 (Total: 4 + 6 = 10 - ignore, "s" - "a" is
already 7)
- Leaving node "b" and entering node "c" with weight 8 (Total: 4 + 8 = 12 - ignore, "s" - "c" is
already 4)
The current priority queue is:
- "s" - "c" (4)
- "b" - "e" (5)
- "s" - "a" (7)
- "b" - "f" (7)