The shortest-path weight (distance) from u to v is δ(u,v)={min w(p) over all p from u to v, if there is any such path;+∞, if there is no path from u to v