#!/usr/bin/env python # ch6-5.py from openeye.oechem import * mol = OEGraphMol() OEParseSmiles(mol, "c1ccccc1CCCBr") print "Carbon atoms:", for atom in mol.GetAtoms(IsCarbon()): print atom.GetIdx(), print