This example shows how to make force layout decide which settings are the best depending on the graph's size.