MolGraph
A molecular graph: element symbols and bonds (pairs of atom indices).
Usage
MolGraph()>>> MolGraph(symbols=["O", "H", "H"], bonds=[(1, 0), (0, 2)])MolGraph(symbols=(‘O’, ‘H’, ‘H’), bonds=((0, 1), (0, 2)), charge=0, spin=0)
The spin (unpaired electrons, 2S) defaults to the lowest the electron count allows:
>>> MolGraph(symbols=["C", "H", "H", "H"], bonds=[(0, 1), (0, 2), (0, 3)]).spin1