A graph isomorphism condition and equivalence of reaction systems