This is Dijkstra algorithm implementation from the course I\'m studying. I made my own solution and it seems to be working. But this is the author\'s solution. He included t