Added edge weight to hash for XML output.