ReactionGraph
A reaction or TS graph.
Usage
ReactionGraph()bonds is every bond (the condensed graph’s edges), and breaking and forming are disjoint subsets of it: the reactant side is bonds without forming, the product side bonds without breaking.
>>> g = ReactionGraph(
... symbols=["H", "H", "H"],
... bonds=[(0, 1), (1, 2)],
... breaking=[(0, 1)],
... forming=[(2, 1)],
... )
>>> g.forming((1, 2),)