Skip to main content

reactants()

The reactant side, as one (possibly disconnected) graph in the same atom order.

Usage

Source

reactants(gra: StereoReactionGraph) -> StereoMolGraph
 
reactants(gra: ReactionGraph) -> MolGraph

Its bonds are bonds without forming, and its LS are the unchanged LS and the reactant slot of each change.

>>> g = ReactionGraph(
...     symbols=["H", "H", "H"], bonds=[(0, 1), (1, 2)], breaking=[(0, 1)],
...     forming=[(1, 2)],
... )
>>> reactants(g).bonds

((0, 1),)