Single-source shortest-path result.
Distance from the source, Infinity when unreachable.
Infinity
Vertices from source to target, or undefined when unreachable.
target
undefined
Single-source shortest-path result.