dijkstra (G, w, s):
source(G,s)
S <- null
Q <- V[G]
while Q!=null:
u <- Extract_min(Q)
s <- S + u
äë˙ ęŕćäîé âĺđřčíű v čç Adj[u]:
relax(u, v, w)