dijkstra.expected 173 B

12345678910111213
  1. distances from start vertex:
  2. distance(0) = 0
  3. distance(1) = 6
  4. distance(2) = 1
  5. distance(3) = 4
  6. distance(4) = 5
  7. shortest paths tree
  8. 0 --> 2
  9. 1 -->
  10. 2 --> 3
  11. 3 --> 4
  12. 4 --> 1