The command line parameter --reverse
(-s
) specifies that the reversed reaction will be performed; that is, the two sides of the given reaction equation are swapped: products are taken as reactants and reactants are taken as products. Note that in reverse mode, the number of input file(s)/string(s) should match the number of product(s) of the reaction equation to be applied.
Example (Click here to expand...)
react -s -r da.mrv "C1CCC=CC1"
C=CC=C
C=C
react -s -r da.mrv daproduct.mrv
C=CC=C
C=C
CC(=C)C(C)=C
CC=C
CC(=C)C(C)=C
CC=CC
Note : Results are written to the console.