Inspired by this question on Electronics, my question is: what is an algorithm for creating all possible graphs with a given number of edges but a possibly varying number of vertices?
There is at least one related question dealing with enumerating how many such graphs exist, but none that I could find that explained an algorithm for actually generating them.
Because I'm not a mathematician, an explanation that doesn't require more than the relatively elementary level of graph theory I remember from university would be most useful.