Add graphs isomorphism test