private void assignClusterNums(int[] cl_num) throws Exception {
  if (m_children != null && m_children.size() < 2) {
    throw new Exception("assignClusterNums: tree not built correctly!");
  }
  m_clusterNum=cl_num[0];
  cl_num[0]++;
  if (m_children != null) {
    for (int i=0; i < m_children.size(); i++) {
      CNode child=m_children.get(i);
      child.assignClusterNums(cl_num);
    }
  }
}

private void assignClusterNums ( int [ ] cl_num ) throws Exception { if ( m_children != null && m_children . size ( ) < 2 ) { throw new Exception ( "assignClusterNums: tree not built correctly!" ) ; } m_clusterNum = cl_num [ 0 ] ; cl_num [ 0 ] ++ ; if ( m_children != null ) { for ( int i = 0 ; i < m_children . size ( ) ; i ++ ) { CNode child = m_children . get ( i ) ; child . assignClusterNums ( cl_num ) ; } } }
recursively assigns numbers to the nodes in the tree .
