Dijkstra: change input format
Dijkstra: change input format

Now algorithm works with weighted graphs as well.
-1 means no path; other values are edge weights.
Negative weights aren't supported.

zer0main/problems,zer0main/problems,zer0main/problems