Optimum Locations of Centers in Networks