Fig. 4

Illustration of the enumeration algorithm. a An example of an input chemical reaction network. b Visualized procedures of the enumeration algorithm. The black filled circle is a node to focus on. X is a terminal state where a synthetic route is constructed. Y is also a terminal state where there is no node to focus on because all child nodes (1, 2) are already checked