@ Override public Collection < BioPAXElement > generate ( Match match , int ... ind ) { Interaction inter = ( Interaction ) match . get ( ind [ 0 ] ) ; Set < Entity > taboo = new HashSet < Entity > ( ) ; for ( int i = 1 ; i < getVariableSize ( ) - 1 ; i ++ ) { taboo . add ( ( Entity ) match . get ( ind [ i ] ) ) ; } if ( direction == null ) return generate ( inter , taboo ) ; else return generate ( ( Conversion ) inter , direction , taboo ) ; }
Iterated over non - taboo participants and collectes related ER .