add a function which can resize the zoomed node

vis.selectAll("circle.node").transition()
.attr("r", function(d) { return d.children ? 4.5 : Math.sqrt(d.size) /
10; });