mbostock/d3 — pull request #519 by luispedro (2012-02-20 19:26:12+00:00)
Title: Generalize gravity to a field in force layout

This can be a flexible tool for certain effects. In my case, it is
having a single element in the centre (achieved with ``e.fixed = 1``),
whilst everybody else tries to be a bit far away, but not too far away.
So, I have a moat field where there is centrifugal force if you are more
than R away from centre, and centripetal force if you are less than R.

As a special case (and the default), this is the traditional gravity
field.

Implementation is simple too.