My problem is:Iíve been given a file
1 2 15
1 3 16
2 3 20
and so onÖ First two values of the input file represents graph nodes and the third one is distance between them. I know the number of nodes.I need perl code that makes a matrix that looks like this:
0 0 0 0
0 0 15 16
0 15 0 20
0 16 20 0
thanks