public boolean isConflict(KnowledgeGroup group){
  if (this.type != group.type) {
    return intersect(this.fromGroup,group.fromGroup) && intersect(this.toGroup,group.toGroup);
  }
  return false;
}

public boolean isConflict ( KnowledgeGroup group ) { if ( this . type != group . type ) { return intersect ( this . fromGroup , group . fromGroup ) && intersect ( this . toGroup , group . toGroup ) ; } return false ; }
states whether this group has a conflict with the given one .
