Learning from network data : algorithmic insights into epidemic prediction and more