protected void naiveLayout(){
  if (nodeLevels == null) {
    makeProperHierarchy();
  }
  for (int i=0, temp=0; i < nodeLevels.length; i++) {
    for (int j=0; j < nodeLevels[i].length; j++) {
      temp=nodeLevels[i][j];
      GraphNode n=m_nodes.get(temp);
      n.x=j * m_nodeWidth;
      n.y=i * 3 * m_nodeHeight;
    }
  }
}

protected void naiveLayout ( ) { if ( nodeLevels == null ) { makeProperHierarchy ( ) ; } for ( int i = 0 , temp = 0 ; i < nodeLevels . length ; i ++ ) { for ( int j = 0 ; j < nodeLevels [ i ] . length ; j ++ ) { temp = nodeLevels [ i ] [ j ] ; GraphNode n = m_nodes . get ( temp ) ; n . x = j * m_nodeWidth ; n . y = i * 3 * m_nodeHeight ; } } }
this method lays out the vertices horizontally , in each level . it simply assings an x value to a vertex according to its index in the level .
