/** * Create a pattern which can be used to find molecules which are the same * as the {@code query} structure. * * @param query the substructure to find * @param atomMatcher how atoms are matched * @param bondMatcher how bonds are matched * @return a pattern for finding the {@code query} */ public static Pattern findIdentical(IAtomContainer query, AtomMatcher atomMatcher, BondMatcher bondMatcher) { return new VentoFoggia(query, atomMatcher, bondMatcher, false); }
/** * Create a pattern which can be used to find molecules which contain the * {@code query} structure. * * @param query the substructure to find * @param atomMatcher how atoms are matched * @param bondMatcher how bonds are matched * @return a pattern for finding the {@code query} */ public static Pattern findSubstructure(IAtomContainer query, AtomMatcher atomMatcher, BondMatcher bondMatcher) { return new VentoFoggia(query, atomMatcher, bondMatcher, true); }