An application of coding theory to a problem in graphical enumeration