Carrying capacity in a heterogeneous environment with habitat connectivity | Synapse