// + level + " Number of Nodes: " + graph.getGraphSize( level ) );
Vector2D difference = new Vector2D();
float length;
Grid grid = new Grid( k * 2, graph, level );
List<DNVNode> potentialNodes;
// float maxYAtDistance1 = Float.NEGATIVE_INFINITY;
// float minYAtDistance1 = Float.POSITIVE_INFINITY;
// float tempY;
// float distance;
// repulsive forces
for( DNVNode v : graph.getNodes( level ) )
{
v.setForce( 0, 0 );
potentialNodes = grid.getPotentialNodes( v );
for( DNVNode u : potentialNodes )
{
if( u != v )
{
difference.set( v.getPosition() );