On the group of the composition of two graphs