code: public static Set<BioPAXElement> runPathsFromTo(
  		Set<BioPAXElement> sourceSet,
  		Set<BioPAXElement> targetSet,
  		Model model,
  		LimitType limitType,
  		int limit,
  		Filter... filters)
  	{
  		Graph graph;
  
  		if (model.getLevel() == BioPAXLevel.L3)
  		{
  			graph = new GraphL3(model, filters);
  		}
  		else return Collections.emptySet();
  
  		Set<Node> source = prepareSingleNodeSet(sourceSet, graph);
  		Set<Node> target = prepareSingleNodeSet(targetSet, graph);
  
  		PathsFromToQuery query = new PathsFromToQuery(source, target, limitType, limit, true);
  		Set<GraphObject> resultWrappers = query.run();
  		return convertQueryResult(resultWrappers, graph, true);
  	}
docs: Gets paths the graph composed of the paths from a source node, and ends at a target node.
  @param sourceSet Seeds for start points of paths
  @param targetSet Seeds for end points of paths
  @param model BioPAX model
  @param limitType either NORMAL or SHORTEST_PLUS_K
  @param limit Length limit fothe paths to be found
  @param filters for filtering graph elements
  @return BioPAX elements in the result