public void initStructure() throws Exception {
  int nAttribute=0;
  for (int iOrder=1; iOrder < m_Instances.numAttributes(); iOrder++) {
    if (nAttribute == m_Instances.classIndex()) {
      nAttribute++;
    }
  }
  m_ParentSets=new ParentSet[m_Instances.numAttributes()];
  for (int iAttribute=0; iAttribute < m_Instances.numAttributes(); iAttribute++) {
    m_ParentSets[iAttribute]=new ParentSet(m_Instances.numAttributes());
  }
}

public void initStructure ( ) throws Exception { int nAttribute = 0 ; for ( int iOrder = 1 ; iOrder < m_Instances . numAttributes ( ) ; iOrder ++ ) { if ( nAttribute == m_Instances . classIndex ( ) ) { nAttribute ++ ; } } m_ParentSets = new ParentSet [ m_Instances . numAttributes ( ) ] ; for ( int iAttribute = 0 ; iAttribute < m_Instances . numAttributes ( ) ; iAttribute ++ ) { m_ParentSets [ iAttribute ] = new ParentSet ( m_Instances . numAttributes ( ) ) ; } }
init structure initializes the structure to an empty graph or a naive bayes graph ( depending on the - n flag ) .
