Let be a gram matrix of .
Let be a known ample class.
Let be integers.
CGS takes this data as input and returns the set
When , the program acts as SmoothRationalCurves. Thus, it returns the set of classes of square that are also classes of smooth rational curves.