The enumeration of nonhomeomorphic graphs by edges