Added edge weight to hash for XML output.
Merge pull request #1 from erikdoe/master

Adding edge weights to XML output