Traditional reaction templates / families group reactions that share similar reaction mechanisms and are determined by heuristic rules or by the presence of required functional groups. This ambiguity is removed here using a graph-based classification of reactions. Each model reaction is defined by subgraphs of the reactant and product controlled by changes in adjacency and the graphical distance parameter, d g , that defines the number of bonds separating a pair of atoms.