I'm presented with the following algorithm:
Dijkstra's Shortest-Path Algorithm
This algorithm finds the length of a shortest path from veftex $a$ to vertex $z$ in a connected, weighted graph. The weight of edge $(i,j)$ is such that $w(i,j)>0$, and the label of vertex $x$ is $L(x)$. At termination, $L(z)$ is the length of a shortest path from $a$ to $z$.
$\hspace{1cm}$Input: A connected, weighted graph in which all weights are positive; vertices $a$ and $z$
$\hspace{1cm}$Output: $L(z)$, the length of a shortest path from $a$ to $z$
1$\hspace{0.75cm}$dijkstra(w,a,z,L){
2$\hspace{0.75cm}$ L(a)=0
3$\hspace{0.75cm}$ for all vertices x$\neq$a
4$\hspace{0.75cm}$ L(x)=$\infty$
5$\hspace{0.75cm}$ T = set of all vertices
6$\hspace{0.75cm}$ //T is the set of vertices whose shortest distance from a has
7$\hspace{0.75cm}$ //not been found
8$\hspace{0.75cm}$ while(z$\in$T){
9$\hspace{0.75cm}$ chose v$\in$T with minimum L(v)
10$\hspace{0.75cm}$ T=T-{v}
11$\hspace{0.75cm}$ for each x$\in$T adjacent to v
12$\hspace{0.75cm}$ L(x)=min{L(x),L(v)+w(v,x)}
13$\hspace{0.75cm}$ }
14$\hspace{0.75cm}$}
I'm then asked the following question:
True or false? This algorithm finds the length of the shortest path in a connected, weighted graph even if some weights are negative. If true, prove it; otherwise, provide a counter example.
My question is what is being communicated in this algorithm?