Adding edge weights to XML output

The weight of an edge should be specified as an attribute of the XML edge node, not in a nested custom attribute, i.e. it should look as follows:

    <edge id="133" source="1" target="66" type="undirected" weight="11.0"/>

This change adds the edge weight to the edge's hash, which results in the desired output.