Codifies common d3.force.layout tasks.