Optionally, our algorithm can further reduce the number of AAM solutions using filters based on information about hydrogen atoms and bond multiplicity, which are neglected in the modular product defined in the previous subsection. In this optional postprocessing step, the algorithm selects complete mappings that (1) minimize the total number of created or broken bonds involving a hydrogen atom (fil-ter1), and (2) minimize the total number of bond multiplicity changes after applying filter1 (filter2).