code: public boolean hasSolution(Pattern p, BioPAXElement ... ele)
  	{
  		Match m = new Match(p.size());
  		for (int i = 0; i < ele.length; i++)
  		{
  			m.set(ele[i], i);
  		}
  
  		return !search(m, p).isEmpty();
  	}
docs: Checks if there is any match for the given pattern if search starts from the given element.
  @param p pattern to search for
  @param ele element to start from
  @return true if there is a match