Optimize generator for highly complete graphs