Learning the piece-wise constant graph structure of a varying Ising model