I am stuck at the following:
I need to draw a graph G with vertex set V and edge set E. The set of vertices of G is 1,2,3,4,5,....35,36. The following gives the adjacency criterion:
1 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
2 is adjacent to the vertices 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35
3 is adjacent to the vertices 1 2 4 5 7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32 34 35
4 is adjacent to the vertices 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35
5 is adjacent to the vertices 1 2 3 4 6 7 8 9 11 12 13 14 16 17 18 19 21 22 23 24 26 27 28 29 31 32 33
34 36
6 is adjacent to the vertices 1 5 7 11 13 17 19 23 25 29 31 35
7 is adjacent to the vertices 1 2 3 4 5 6 8 9 10 11 12 13 15 16 17 18 19 20 22 23 24 25 26 27 29 30 31 32 33 34 36
8 is adjacent to the vertices 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35
9 is adjacent to the vertices 1 2 4 5 7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32 34 35
10 is adjacent to the vertices 1 3 7 9 11 13 17 19 21 23 27 29 31 33
11 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 34 35 36
12 is adjacent to the vertices 1 5 7 11 13 17 19 23 25 29 31 35
13 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36
14 is adjacent to the vertices 1 3 5 9 11 13 15 17 19 23 25 27 29 31 33
15 is adjacent to the vertices 1 2 4 7 8 11 13 14 16 17 19 22 23 26 28 29 31 32 34
16 is adjacent to the vertices 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35
17 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36
18 is adjacent to the vertices 1 5 7 11 13 17 19 23 25 29 31 35
19 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
20 is adjacent to the vertices 1 3 7 9 11 13 17 19 21 23 27 29 31 33
21 is adjacent to the vertices 1 2 4 5 8 10 11 13 16 17 19 20 22 23 25 26 29 31 32 34
22 is adjacent to the vertices 1 3 5 7 9 13 15 17 19 21 23 25 27 29 31 35
23 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 24 25 26 27 28 29 30 31 32 33 34 35 36
24 is adjacent to the vertices 1 5 7 11 13 17 19 23 25 29 31 35
25 is adjacent to the vertices 1 2 3 4 6 7 8 9 11 12 13 14 16 17 18 19 21 22 23 24 26 27 28 29 31 32 33 34 36
26 is adjacent to the vertices 1 3 5 7 9 11 15 17 19 21 23 25 27 29 31 33 35
27 is adjacent to the vertices 1 2 4 5 7 8 10 11 13 14 16 17 19 20 22 23 25 26 28 29 31 32 34 35
28 is adjacent to the vertices 1 3 5 9 11 13 15 17 19 23 25 27 29 31 33
29 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36
30 is adjacent to the vertices 1 7 11 13 17 19 23 29 31
31 is adjacent to the vertices 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 35 36
32 is adjacent to the vertices 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35
33 is adjacent to the vertices 1 2 4 5 7 8 10 13 14 16 17 19 20 23 25 26 28 29 31 32 34 35
34 is adjacent to the vertices 1 3 5 7 9 11 13 15 19 21 23 25 27 29 31 33 35
35 is adjacent to the vertices 1 2 3 4 6 8 9 11 12 13 16 17 18 19 22 23 24 26 27 29 31 32 33 34 36
36 is adjacent to the vertices 1 5 7 11 13 17 19 23 25 29 31 35
I know how to draw the graph by manually specifying the co-ordinates.
It can be done using \node
and \draw
Is it possible to draw the graph without manually entering the co-ordinates?
Is it possible to make tikz automatically choose the co-ordinates and draw the graph?is it possible to use some loop where I just specify the vertices and edges and the graph gets drawn?
Since its a big graph its very difficult to manually specify the coordinates.
Please help someone.
texdoc pgf
and hit enter.