public static Set < BioPAXElement > runCommonStream ( Set < BioPAXElement > sourceSet , Model model , Direction direction , int limit , Filter ... filters ) { Graph graph ; if ( model . getLevel ( ) == BioPAXLevel . L3 ) { graph = new GraphL3 ( model , filters ) ; } else return Collections . emptySet ( ) ; Collection < Set < Node > > source = prepareNodeSets ( sourceSet , graph ) ; if ( sourceSet . size ( ) < 2 ) return Collections . emptySet ( ) ; CommonStreamQuery query = new CommonStreamQuery ( source , direction , limit ) ; Set < GraphObject > resultWrappers = query . run ( ) ; return convertQueryResult ( resultWrappers , graph , false ) ; }
Gets the elements in the common upstream or downstream of the seed