index.js
function inferSettings(graph) {
  var order = graph.order;

  return {
    barnesHutOptimize: order > 2000,
    strongGravityMode: true,
    gravity: 0.05,
    scalingRatio: 10,
    slowDown: 1 + Math.log(order)
  };
}
function inferSettings(graph) {
  var order = graph.order;

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

@param  {Graph}  graph - Target graph.
@return {object}
Function returning sane layout settings for the given graph .