Impact of trade network on relationships between societies