CommunityGenerator can now take a seedGenerator function to generate the same graph again and again.