nodes.next().updateEdgelengthsAndMass( processedEdges, false );
}
nodes = graph.getNodes( level ).iterator();
int size = graph.getGraphSize( level );
DNVNode tempNode;
DNVNode parentNode;
int siblings = 0;
int i = 0;
System.out.println( " Setting the positions for " + size + " nodes." );
float distance;
Timer distanceTimer = new Timer( Timer.NANOSECONDS );
Timer placingTimer = new Timer( Timer.NANOSECONDS );
while( nodes.hasNext() )
{
tempNode = nodes.next();
parentNode = tempNode.getParentNode();
if( parentNode != null )
{
center = parentNode.getPosition();
siblings = parentNode.getNumberOfSubNodes();
}
else
{
center = new Vector2D( (float)Math.random(), (float)Math.random() );
siblings = 1;