question: public void reset ( BNetwork network ) { if ( System . identityHashCode ( this ) != System . identityHashCode ( network ) ) { nodes . clear ( ) ; chanceNodes . clear ( ) ; utilityNodes . clear ( ) ; actionNodes . clear ( ) ; for ( BNode node : network . getNodes ( ) ) { addNode ( node ) ; } } }
target:  Resets the Bayesian network to only contain the nodes contained in the argument. Everything else is erased.