Modified from Mike Bostock’s original.
Looks more like the version with custom gravity.
Compare with Shan Carter’s v4 adaptation.