The graph visualization works smooth on any modern browser for up to a
The graph visualization works smooth on any modern browser for up to a
few thousand nodes and edges.
few hundred nodes and edges.
</p>
</p>
<p>
<p>
@ -290,6 +290,14 @@ var nodes = [
the same color schema.</td>
the same color schema.</td>
</tr>
</tr>
<tr>
<td>fixed</td>
<td>Boolean</td>
<td>false</td>
<td>If fixed is true, then the node will not move from its supplied position.
If only an x position has been supplied, it is only fixed in the x-direction.
The same holds for y. If both x and y have been defined, the node will not move.</td>
</tr>
<tr>
<tr>
<td>fontColor</td>
<td>fontColor</td>
<td>String</td>
<td>String</td>
@ -827,6 +835,14 @@ var options = {
<td>"#2B7CE9"</td>
<td>"#2B7CE9"</td>
<td>Default border color of the node when selected.</td>
<td>Default border color of the node when selected.</td>
</tr>
</tr>
<tr>
<td>fixed</td>
<td>Boolean</td>
<td>false</td>
<td>If fixed is true, then the node will not move from its supplied position.
If only an x position has been supplied, it is only fixed in the x-direction.
The same holds for y. If both x and y have been defined, the node will not move.</td>
</tr>
<tr>
<tr>
<td>fontColor</td>
<td>fontColor</td>
@ -1139,7 +1155,10 @@ var nodes = [
<h3id="Physics">Physics</h3>
<h3id="Physics">Physics</h3>
<p>
<p>
Graph uses a <ahref="http://en.wikipedia.org/wiki/Force-directed_graph_drawing">force directed algorithm</a> to layout nodes and edges, and uses the <ahref="http://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation">Barnes-Hut</a> gravitational simulation model. There are a number of configuration options available to tune the physics model. Note that wrong configuration can lead to instable behaviour.
The original simulation method was based on particel physics with a repulsion field (potential) around each node,
and the edges were modelled as springs. The new system employed the <ahref="http://en.wikipedia.org/wiki/Barnes%E2%80%93Hut_simulation">Barnes-Hut</a> gravitational simulation model. The edges are still modelled as springs.
To unify the physics system, the damping, repulsion distance and edge length have been combined in an physics option. To retain good behaviour, both the old repulsion model and the Barnes-Hut model have their own parameters.
If no options for the physics system are supplied, the Barnes-Hut method will be used with the default parameters.
</p>
</p>
<preclass="prettyprint">
<preclass="prettyprint">
// These variables must be defined in an options object named physics.
// These variables must be defined in an options object named physics.