Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to find a list of all connected bipartite graphs on 15 vertices. lists all graphs on 14 or fewer number of vertices. says there are 575 252 112 such graphs.

share|cite|improve this question
up vote 7 down vote accepted


 geng -bc 15 conbip.g6.txt 

with the program geng from Brendan McKay's nauty package, available from

The list of connected bipartite graphs with n = 14 vertices is 74MB compressed and requires a few minutes to generate. The list for n = 15 may take a while to complete and the resulting file will be large.

share|cite|improve this answer
I added the flag for connected graphs, and gave an output filename. I also mentioned output size and calculation time. I deleted my copy of the output since it was too large to justify keeping; I believe it took on the order of an hour to generate. – Jack Schmidt Jun 30 '12 at 15:14
Thank you! this a great tool. for n=15 output is 10.7 GB and it took around 10 minutes [running on 3 cores] – Hrant Khachatrian Jul 1 '12 at 8:35

Simple estimation can be made if one considers selected bipartite graph Gi and then counts all the possible non-bipartite graphs that can be made from this graph Gi by adding inner edges in earch part of the graph Gi. So, if number of vortices in one part is x and number of vertices of another part is n-x, then the total number of new graphs for graph Gi is ((a b) being the binomial coefficient) 2^(x 2)*2(n-x 2)-1. After finding the minimum expression for x, the final estimation is that for each bipartite graph there are additional 2^n^2 non-bipartite graphs. So the part of bipartite graphs goes to zer when n goes to infinity.

From this result it is possible to get estimation of the total number of bipartite graphs on n vertices.

There are several article that gives exact computation of number of bipartite graphs, but no explicit formulas are given (found).

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.