The problem I wanted to use on that solution is as following:
I have counted the frequencies of k-mers from a large set of DNA sequences stored in a file, then given a k-mer L I would like to find the frequency of E(L, n), i.e., set of all k-mers having n-mismatch to L, using that pre-computed frequency file.
So I am thinking to store those pre-computed k-mers frequencies in a hash-table, and then enumerate E(L,n) and then find the frequency of each T in E(L,n) using the hash table.
The vmatch indeed can solve this problem.
Enumerating all the combinations is a very classical problem in computer science. You can find the solution to this generalized problem with google. You can do that with suffix tree, but it is probably much easier to solve the generalized problem.