On the automorphism group of a composite graph