To overcome the limitation imposed by direct use of the dataset entries, we first build a bipartite reaction graph to map the relationship between all compounds designated as products in the reaction dataset with their corresponding template or reaction rule. Using only templates that have been validated by applying them to the product and confirming that they regenerate the reactants recorded in the dataset, we ensure that the graph represents a 'partial' ground truth of the retrosynthetic space.