protected void enrichWithCM ( Set < BioPAXElement > seed , Set < BioPAXElement > all ) { Set addition = access ( type == Type . TO_GENERAL ? complexAcc : memberAcc , seed , all ) ; if ( blacklist != null ) addition = blacklist . getNonUbiqueObjects ( addition ) ; if ( ! addition . isEmpty ( ) ) { all . addAll ( addition ) ; enrichWithGenerics ( addition , all ) ; } }
Gets parent complexes or complex members recursively according to the type of the linkage .