Gephi Toolkit Javadoc

org.gephi.layout.plugin.force.quadtree
Class BarnesHut

java.lang.Object
  extended by org.gephi.layout.plugin.force.quadtree.BarnesHut

public class BarnesHut
extends java.lang.Object

Barnes-Hut's O(n log n) force calculation algorithm.

Author:
Helder Suzuki

Constructor Summary
BarnesHut(AbstractForce force)
           
 
Method Summary
 ForceVector calculateForce(Spatial node, QuadTree tree)
           
 float getTheta()
           
 void setTheta(float theta)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarnesHut

public BarnesHut(AbstractForce force)
Method Detail

calculateForce

public ForceVector calculateForce(Spatial node,
                                  QuadTree tree)

setTheta

public void setTheta(float theta)

getTheta

public float getTheta()

Gephi Toolkit Javadoc