Input matrix:
Input a distance array as CSV. '-' denotes infinity.
0,1,-,1,- 1,0,1,-,- -,-,0,-,1 1,-,-,0,1 -,1,-,-,0
Calculate