I have a file of the type:
A B 0.123 A C 0.84 B D 0.52 ...
Where the data are tab separated, and the first and second columns are the nodes,