Structure Learning of Partitioned Markov Networks