code: def _add_nodes(self):
          
          for n, atom in enumerate(self.ast.select('atom')):
              self.add_node(n, atom=atom)
              self._atom_indices[id(atom)] = n
docs: Add all atoms in the SMARTS string as nodes in the graph.