Distributed community detection in dynamic graphs