// }
List<DNVEdge> fromEdges = dnvNode.getFromEdges();
List<DNVEdge> toEdges = dnvNode.getToEdges();
// DNVNode tempNeighbor;
Vector2D tempForce = null;
Vector2D source = dnvNode.getPosition();
// Accumulate Spring Force
// springForceTimer.setStart();
tempForce = accumulateEdgeForce( graph, dnvNode, level, fromEdges, toEdges, tempForce, source );
// springForceTimer.setEnd();
List<DNVNode> allNodes;
// Accumulate Repelling Force
// repellingTimer.setStart();
// if( graphSize > 2 )
// {
// if( repellingTimer.getAverageTime( Timer.MILLISECONDS ) > 0.3 &&
// repellingMethod == REPEL_ALL )
// toggleRepelMethod();
if( repellingMethod == REPEL_ALL || level.equals( graph.getMaxLevel() ) )
{
// repellingOctreeTimer.setStart();
// dnvNode.updateRepelledNodes();
// numberRepelled.add( dnvNode.getRepelledNodes().size() );
// repellingOctreeTimer.setEnd();
// allNodes = dnvNode.getRepelledNodes();
allNodes = graph.getNodes( level );
}
else
{
// if( repellingMethod == REPEL_SIBLINGS_ONLY )
allNodes = dnvNode.getSiblings();
}
tempForce = accumulateRepellingForce( graph, dnvNode, level, tempForce, source, allNodes );
// }
// repellingTimer.setEnd();
Vector2D centerOfGravity = graph.getCenterOfGravity();
// accumulate force towards center of gravity
// centerTimer.setStart();
accumulateForceToCenterOfGravity( dnvNode, tempForce, source, centerOfGravity );
// centerTimer.setEnd();