  An algorithm and a computer program in Fortran 95 are presented which
enumerate the Hugenholtz diagram representation of the many-body perturbation
series for the ground state energy with a two-body interaction. The output is
in a form suitable for post-processing such as automatic code generation. The
results of a particular application, generation of LaTeX code to draw the
diagrams, is shown.
