When no communities are detected, put all nodes in the same community.