Optimizing network structure for preventative health