Solution Path of Time-varying Markov Random Fields with Discrete Regularization