ChemAxon a3d59b832c
26-07-2004 08:25:13
Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. (See http://www.jython.org/)
This wrapper code was kindly contributed by Daniel McShan at UCHSC:
This wrapper code was kindly contributed by Daniel McShan at UCHSC:
Code: |
import sys sys.path.append("/Users/dan/jchem/lib/jchem.jar") from chemaxon.util import MolHandler from chemaxon.sss.search import StandardizedMolSearch ... def subgraph (A, B): "Is A a subgraph of B?" s = StandardizedMolSearch() Amol = MolHandler(A).getMolecule() Bmol = MolHandler(B).getMolecule() s.setQuery(Amol) s.setTarget(Bmol) return s.isMatching() |