{"url":"https://api.github.com/gists/1747543","forks_url":"https://api.github.com/gists/1747543/forks","commits_url":"https://api.github.com/gists/1747543/commits","id":"1747543","node_id":"MDQ6R2lzdDE3NDc1NDM=","git_pull_url":"https://gist.github.com/1747543.git","git_push_url":"https://gist.github.com/1747543.git","html_url":"https://gist.github.com/1747543","files":{".block":{"filename":".block","type":"text/plain","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/1747543/raw/703d310b399098a243a76a50bc209167e924cfd2/.block","size":17,"truncated":false,"content":"license: gpl-3.0\n"},"README.md":{"filename":"README.md","type":"text/plain","language":"Markdown","raw_url":"https://gist.githubusercontent.com/mbostock/1747543/raw/a4b2c1fa2990dbeec101cf9c42272aee6127eb30/README.md","size":505,"truncated":false,"content":"This clustered [force layout](/mbostock/4062045) is implemented using two custom forces. The first, `cluster`, pushes nodes towards the largest node of the same color. A second `collide` force prevents circles from overlapping by [detecting collisions](/mbostock/3231298).\n\nThis example uses standard gravity; compare to [custom gravity](/mbostock/1748247) applied only to the largest node of each color. To minimize distracting jitter during initialization, try an [entry transition](/mbostock/7881887).\n"},"index.html":{"filename":"index.html","type":"text/html","language":"HTML","raw_url":"https://gist.githubusercontent.com/mbostock/1747543/raw/c8c62af946f4c69d98ef3f1a54d3881ed2af1545/index.html","size":2777,"truncated":false,"content":"\n\n