Effects of topology on the gravitational wave