The world-premiere play about a deadly contagion that leads to the segregation of men and women plays the Edinburgh Fringe Festival before a 2018 London bow.