Change weight to _weight

d3 uses weight for the number of links attached to a node,
so it’s easier for us to use a different name.