def flip(self, reactions):
for reaction in reactions:<EOL><INDENT>if reaction in self._flipped:<EOL><INDENT>self._flipped.remove(reaction)<EOL><DEDENT>else:<EOL><INDENT>self._flipped.add(reaction)<EOL><DEDENT><DEDENT>
Flip the specified reactions.