Dijkstra’s algorithm is an algorithm for finding the shortest paths between two vertices in a network.
The weight of an edge sequence e1,e2,…,ek is given by:
w({e1,e2,…,ek})=j=1∑kw(ej)
where w(ej) is a non-negative weight function, w:E→R≥0.
Algorithm: Let q∈V be the source vertex and s∈V be the sink vertex:
todo