Generalize sonsum for any number of gems
consum(g1, f1, g2, f2, ..., i1, j1, k1, l1, ...)
gx = gem, fx = color-0, i1 = vertex label of g[j1+1], k1 = vertex label of g[l1+1]