Dear student
Since hexagon is symmetric about its centre so the gravitational force at the centre ​due to the particles situated on each diagonals of hexagon will be equal in magnitude but opposite in direction so the net gravitational field at centre of hexagon will be zero.