We study the multiparty communication model where players are the nodes of a graph G and each of these nodes knows his/her own identifier together with the identifiers of his/her neighbors. The nodes simultaneously send a unique message to a referee who must give the output (which is a fiunction of G). In this paper we prove that counting the numbers of connected components of G and deciding the connectivity of G are equivalent problems (in terms of the size of the messages).