Graph Generator: Trying to further minimize space complexity