From 7aecbec10e456979e664c1186f902124c0322538 Mon Sep 17 00:00:00 2001 From: Alex de Mulder Date: Tue, 12 May 2015 16:03:28 +0200 Subject: [PATCH] added new solver to docs --- docs/network/physics.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/docs/network/physics.html b/docs/network/physics.html index e09153e9..65fb8020 100644 --- a/docs/network/physics.html +++ b/docs/network/physics.html @@ -92,6 +92,14 @@ var options = { springConstant: 0.04, damping: 0.09 }, + forceAtlas2Based: { + theta: 0.5, + gravitationalConstant: -800, + centralGravity: 0.01, + springConstant: 0.08, + springLength: 100, + damping: 0.4 + }, repulsion: { centralGravity: 0.2, springLength: 200, @@ -135,13 +143,23 @@ network.setOptions(options);

All of the individual options are explained here:

- + + + + + + + + @@ -158,7 +176,7 @@ network.setOptions(options); - +
nametypedefaultdescription
barnesHut Object Object BarnesHut is a quadtree based gravity model. This is the fastest, default and recommended solver for non-hierarchical layouts.
barnesHut Object Object BarnesHut is a quadtree based gravity model. This is the fastest, default and recommended solver for non-hierarchical layouts.
forceAtlas2Based Object Object Force Atlas 2 has been developed by Jacomi et al (2014) for use with Gephi. The forceAtlas2Based solver makes use of some of the equations provided + by them and makes use of the barnesHut implementation in vis. The main differences are the central gravity model, + which is here distance independent, and the repulsion being linear instead of quadratic. Finally, all node masses have a + multiplier based on the amount of connected edges plus one.
repulsion Object Object The repulsion model assumes nodes have a simplified repulsion field around them. It's force linearly decreases from 1 (at 0.5*nodeDistance and smaller) to 0 (at 2*nodeDistance).
maxVelocity Number 50 The physics module limits the maximum velocity of the nodes to increase the time to stabilization. This is the maximium value.
minVelocity Number 0.1 Once the minimum velocity is reached for all nodes, we assume the network has been stabilized and the simulation stops.
solver String 'barnesHut'You can select your own solver. Possible options: 'barnesHut', 'repulsion', 'hierarchicalRepulsion'. When setting the hierarchical layout, the hierarchical repulsion solver is automaticaly selected, regardless of what you fill in here.
solver String 'barnesHut'You can select your own solver. Possible options: 'barnesHut', 'repulsion', 'hierarchicalRepulsion', 'forceAtlas2Based'. When setting the hierarchical layout, the hierarchical repulsion solver is automaticaly selected, regardless of what you fill in here.
stabilization Object | BooleanObject When true, the network is stabilized on load using default settings. If false, stabilization is disabled. To further customize this, you can supply an object.