Inference of Cascades and Correlated Networks