Modified the connectivity to adjust the 2D ndarray.