A family of graphs possesses the common gcd property if the greatest common divisor of the degree sequence of each graph in the family is the same. In particular, any family of trees has the common gcd property. Let F = {H-1,...,H-r} be a family of graphs having the common gcd property, and let d be the common gcd. It is proved that there exists a constant N = N(F) such that for every n > N for which d divides n - 1, and for every equality of the form alpha(1)e(H-1) +... + alpha(r)e(H-r) = ((n)(2)), where alpha(1),...,alpha(r) are nonnegative integers, the complete graph K, 2 has a decomposition in which each H-i appears exactly alpha(i) times. In case F is a family of trees the bound N(F) is shown to be polynomial in the size of F, and, furthermore, a polynomial (in n) time algorithm which generates the required decomposition is presented. (C) 2002 Elsevier Science B.V. All rights reserved.