3

This might be an easy one, but I cant figure it out.

Given $m$ edges how many connected (non-isomorphic) graphs can be drawn. Ofcourse there are no loops, multiple edges etc.

I tried the recurrence method but introduction of cycles complicate it. Also for a given value of $m$, I might calculate the number of such graphs using sage, but I needed an expression.

Am I missing some obvious counting technique?

1 Answers1

1

There is no exact formula for this. The closest you can get is to use a program like nauty to compute the number of graphs for specific values of the number of vertices and edges.

Example. Computing the number of non-isomorphic connected graphs with $9$ vertices and $13$ edges.

foo@darkstar:~$ geng -c 12 13:13 -u

28908 graphs generated in 0.11 sec

Jernej
  • 5,002