#!/usr/bin/env python # ch6-1.py from openeye.oechem import * mol = OEGraphMol() OEParseSmiles(mol, "c1ccccc1") print "atoms" for atom in mol.GetAtoms(): print atom.GetAtomicNum() print "bonds" for bond in mol.GetBonds(): print bond.GetOrder()