Small Graphs

This site is intended to collate much of the data about small graphs that I have to keep on recomputing. It is primarily designed for my own use, but anyone else is free to check out the numbers or the graphs. If you are interested in small graph data that is not here, then feel free to mail me at gordon@maths.uwa.edu.au because I may have just not got around to installing it.

Table of Contents


Numbers of graphs

The exact numbers of graphs on n vertices and e edges can be computed by using Polya enumeration theory. This enables us to produce a series of tables of the following format. The tables were produced by a Maple program written with Brendan McKay (well, he wrote it after joint discussions).

Graphs with 4 vertices
#edges Connected graphs All graphs
0 0 1
1 0 1
2 0 2
3 2 3
4 2 2
5 1 1
6 1 1
Total 6 11

Tables of this nature are available for the graphs on 1-16 vertices.

1 vx 2 vx 3 vx 4 vx 5 vx 6 vx 7 vx 8 vx
9 vx 10 vx 11 vx 12 vx 13 vx 14 vx 15 vx 16 vx



Bipartite graph

The following table gives the number of connected bipartite graphs separated according to the size of the bipartition. Each row corresponds to a fixed number of vertices, while each column refers to the smaller part of the bipartition. Thus the entry 34 for 7 vertices and m=3 indicates that there are 34 conected bipartite graphs on 7 vertices with partition of size (3,4).

Note that the second column 2,4,6,9 ... is the sequence A002620 in the Encylopaedia of Integer Sequences.

Vertices m=1 m=2 m=3 m=4 m=5 m=6 m=7 Total
2 1             1
3 1             1
4 1 2           3
5 1 4           5
6 1 6 10         17
7 1 9 34         44
8 1 12 76 93       182
9 1 16 155 558       730
10 1 20 290 1824 1897     4032
11 1 25 510 5375 19687     25598
12 1 30 853 14549 98726 98621   212780
13 1 36 1367 36677 451550 1752099   2241730
14 1 42 2113 87020 1904112 14496322 14703714 31193324
15 1              



Trees on up to 16 vertices

The following table allows you to download all the trees on up to 16 vertices. As usual, they are in graph6 format.

Vertices No. of trees
1 1
2 1
3 1
4 2
5 3
6 6
7 11
8 23
9 47
10 106
11 235
12 551
13 1301
14 3159
15 7741
16 19320
17 48629
18 123867
19 317955
20 823065



Colourings of small graphs

The chromatic number of a graph is the smallest number k such that each vertex can be assigned a "colour" from the set {1,2,...,k} in such a fashion that the two ends of every edge are differently coloured.

The following table lists the chromatic numbers of all the connected graphs on up to 11 vertices.

Chrom. number n=3 n=4 n=5 n=6 n=7 n=8 n=9 n=10 n=11
2 1 3 5 17 44 182 730 4032 25598
3 1 2 12 64 475 5036 80947 2010328 76115143
4   1 3 26 282 5009 149551 7694428 667036310
5     1 4 46 809 27794 1890221 248580644
6       1 5 74 1940 113272 14545025
7         1 6 110 4125 389583
8           1 7 156 8040
9             1 8 212
10               1 9
11                 1
Total 2 6 21 112 853 11117 261080 11716571 1006700565



Vertex-critical graphs

A graph is said to be vertex-critical if its chromatic number drops whenever a vertex is deleted.

The following table lists the number of vertex-critical graphs on up to 11 vertices. Each number is a link to the gzip-compressed file containing those graphs in graph6 format. In the larger files the 11-vertex graphs occupy about 2.7 bytes of space per graph. There have been some strange downloading idiosyncrasies that you may wish to consider before downloading.

Vertex-critical graphs
Vertices chi=3 chi=4 chi=5 chi=6 chi=7 chi=8 chi=9 chi=10 chi=11 Total
4   1               1
5 1   1             2
6   1   1           1
7 1 7 1   1         10
8   8 7 1   1       17
9 1 124 236 7 1   1     370
10   2453 2831 237 7 1   1   5530
11 1 22591 296709 34308 237 7 1   1 353855



Edge-critical graphs

A graph is said to be edge-critical if its chromatic number drops whenever an edge is deleted. Every edge-critical graph is necessarily vertex-critical.

The following table lists the number of edge-critical graphs on up to 12 vertices. Each number is a link to the file containing those graphs in graph6 format. In the larger files the 11-vertex graphs occupy an average of 4.1 bytes per graph. There have been some strange downloading idiosyncrasies that you may wish to consider before downloading.

Edge-critical graphs
Vertices chi=3 chi=4 chi=5 chi=6 chi=7 chi=8 chi=9 chi=10 chi=11 chi=12 Total
4   1                 1
5 1   1               2
6   1   1             1
7 1 2 1   1           5
8   5 2 1   1         9
9 1 21 21 2 1   1       47
10   150 162 22 2 1   1     338
11 1 1221 4008 393 22 2 1   1   5649
12   14581 147753 17036 395 22 2 1   1 179791



Number of edges in critical graphs

One question in the structure theory of (edge-)critical graphs is the possible number of edges in a k-critical graph.

The next four tables give the values for the 4, 5, 6 and 7 critical graphs - each entry of the form 15 (6) indicates that there are 6 graphs on 15 edges.

Edge distribution of 4-critical graphs
#Vertices Edge number distribution
4 6
5  
6 10
7 11, 12
8 13, 14 (4)
9 15 (6), 16 (15)
10 16 (6), 17 (23), 18 (118), 19 (2), 20 (1)
11 18 (8), 19 (169), 20 (1002), 21 (38), 22 (4)
12 20 (130), 21 (1375), 22 (11816), 23 (1116), 24 (144)



Edge distribution of 5-critical graphs
#Vertices Edge number distribution
5 10
6  
7 16
8 18, 19
9 19 (2), 20, 21 (6), 22 (12)
10 22, 23 (2), 24 (54), 25 (99), 26 (6)
11 25 (20), 26 (91), 27 (844), 28 (2685), 29 (328), 30 (39), 31
12 27 (51), 28 (143), 29 (1946), 30 (20838), 31 (93991), 32 (24217), 33 (6314), 34 (246), 35 (7)



Edge distribution of 6-critical graphs
#Vertices Edge number distribution
6 15
7  
8 23
9 26, 27
10 28 (2), 29 (1), 30 (6), 31 (12), 35
11 29 (2), 30, 31 (2), 32 (17), 33 (15), 34 (141), 35 (201), 36 (9), 37 (3), 38, 39
12 33 (2), 34 (1), 35 (6), 36 (173), 37 (418), 38 (4354), 39 (9817), 40 (1656), 41 (434), 42 (117), 43 (57), 47 (1)



Edge distribution of 7-critical graphs
#Vertices Edge number distribution
7 21
8  
9 31
10 35, 36
11 38 (2), 39, 40 (6), 41 (12), 45
12 40 (2), 41, 42 (2), 43 (17), 44 (15), 45 (141), 46 (201), 47 (9), 48 (3), 49, 50, 51, 52



Class 2 graphs

Vizing's theorem states that a graph can be edge-coloured in either d or d+1 colours, where d is the maximum degree of the graph. This partitions graphs into two classes, with the ones requiring d+1 colours known as class 2 graphs. Such luminaries as the Petersen] graph are class 2.

The following table gives the number of class 2 graphs from 4 to 9 vertices. The links provide the actual class 2 graphs in graph6 format.

#Vertices #Class 1 #Class 2
4 6 0
5 17 4
6 109 3
7 821 32
8 11050 67
9 260150 930



[Home] Gordon Royle, Feb 1999, gordon@cs.uwa.edu.au