Given an additive matrix
Add a method limb_length to the class DistanceMatrix
that takes the index
In the following example we assume the text file distances.txt1 to be located in the current directory.
>>> D = DistanceMatrix.loadtxt('distances.txt') >>> float(D.limb_length(0)) 11.0 >>> float(D.limb_length(1)) 2.0 >>> float(D.limb_length(2)) 6.0 >>> float(D.limb_length(3)) 7.0