Main example for priority queue using dijkstra's algorithm.