| 239 | } |
| 240 | |
| 241 | int Strategy::checkIntegrity() { |
| 242 | int ret=0; |
| 243 | for (unsigned int i=0;i < (this->degree());i++) { |
| 244 | if ( (((imp->nodes[i]).imp)->father) != imp) { |
| 245 | ret++; |
| 246 | cout<< (((imp->nodes[i]).imp)->father) << " should be " << imp <<endl; |
| 247 | } |
| 248 | ret += (getChild(i).checkIntegrity()); |
| 249 | } |
| 250 | return ret; |
| 251 | } |
| 252 | |
| 253 |