Maximum-entropy moment-closure for stochastic systems on networks