Mean-Field Models In Network Inference And Epidemic Control