question: void mutate ( ) { do { int iBit ; do { iBit = m_random . nextInt ( m_nNodes * m_nNodes ) ; } while ( isSquare ( iBit ) ) ; m_bits [ iBit ] = ! m_bits [ iBit ] ; } while ( hasCycles ( ) ) ; calcScore ( ) ; }
target:  Apply mutation operation to BayesNet Calculate score and as a side effect sets BayesNet parent sets.