Class FastUpperBoundCalculator
java.lang.Object
com.chemaxon.search.mcs.upperbound.FastUpperBoundCalculator
- All Implemented Interfaces:
UpperBoundCalculator
@PublicApi
public final class FastUpperBoundCalculator
extends Object
implements UpperBoundCalculator
This class implements a simple upper bound calculator for the MCS problem.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculate(Molecule query, Molecule target, McsSearchOptions searchOpts) Returns an upper bound for the number of bonds the Maximum Common Substructure of the given molecules may contain.
-
Constructor Details
-
FastUpperBoundCalculator
public FastUpperBoundCalculator()
-
-
Method Details
-
calculate
Description copied from interface:UpperBoundCalculatorReturns an upper bound for the number of bonds the Maximum Common Substructure of the given molecules may contain. Matching atoms and bonds is done based on the specified search options.- Specified by:
calculatein interfaceUpperBoundCalculator- Parameters:
query- the query moleculetarget- the target moleculesearchOpts- the options of the MCS search- Returns:
- an upper bound on the number of bonds of the MCS
-