testIsSubgraphHeuristics
public static boolean testIsSubgraphHeuristics(org.openscience.cdk.interfaces.IAtomContainer ac1,
org.openscience.cdk.interfaces.IAtomContainer ac2,
boolean shouldMatchBonds)
Checks some simple heuristics for whether the subgraph query can
realistically be atom subgraph of the supergraph. If, for example, the
number of nitrogen atoms in the query is larger than that of the
supergraph it cannot be part of it.
- Parameters:
ac1
- the supergraph to be checked.
ac2
- the subgraph to be tested for. Must not be an
IQueryAtomContainer.
shouldMatchBonds
-
- Returns:
- true if the subgraph ac1 has atom chance to be atom subgraph of
ac2