Group consensus of multi-agent systems with undirected communication graphs