Implemented the connectivity_bcast function