If you want to deserialise a weight attribute from DOT into the weight
of an edge, you need to make your edge type satisfy
graph/encoding.AttributeSetter and have the SetAttribute method on the
edge type check for the Key you want to use for weight (presumably
"weight") and use the parsed value of the Value to set the weight of
the edge.
There are too many ways to do this for us to choose the correct way for
every case, so we provide the hooks and let you do it the way you want.
Dan