code: function inferSettings(graph) {
    var order = graph.order;
  
    return {
      barnesHutOptimize: order > 2000,
      strongGravityMode: true,
      gravity: 0.05,
      scalingRatio: 10,
      slowDown: 1 + Math.log(order)
    };
  }
docs: Function returning sane layout settings for the given graph.
  
  @param  {Graph}  graph - Target graph.
  @return {object}