I have to print this python code in a 5x5 array the array should look like this :
0 1 4 (infinity) 3 1 0 2 (infinity) 4 4 2 0 1 5 (inf)(inf) 1 0
print(mat.__str__())
where mat is variable refering to your matrix object