Try Sage (sagemath.org)... you can use 'graphs' to get the list of all graphs of the given order... then you can test if they are of the given size... something like
for G in graphs(5):
if G.size() == 10:
do something
They even have an online version (sagemathcloud) so you don't have to install the whole library
Use nauty for graph generation and dot (from the graphviz package) for drawing. You could do it within sage, which gives you a nice environment to string those together.
Try Sage (sagemath.org)... you can use 'graphs' to get the list of all graphs of the given order... then you can test if they are of the given size... something like
for G in graphs(5):
if G.size() == 10:
do something
They even have an online version (sagemathcloud) so you don't have to install the whole library