Much more sample graphs — now that embedding works for 4 fullerenes (C20/C36.10/C36.14.r/C60).

With those new graphs more graphs that can be embedded with currently active assertions in node.tetra.js rises.

Number of fullerenes with 2n vertices (or carbon atoms).

(starting with C20, steps of 2)

https://oeis.org/A007894
Number of isolated-pentagon (IPR) fullerenes with 2n vertices (or carbon atoms).

(starting with C60, steps of 2)

https://oeis.org/A046880
I generated all fullerenes with 20..70 vertices, they are "C" prefixed.

And I generated all independent pentagon region fullerenes with 60..100 vertices, prefixed with "I".

In order to save space I used this build script I created in plantri52 folder, which gzips all files:

Code: Select all

```
#!/bin/bash
rm -rf graphs
mkdir graphs
for((i=20; i<=70; i+=2))
do
echo C$i; ./fullgen $i code 6 2>err | gzip -9 > graphs/C$i.txt.gz
done
for((i=60; i<=100; i+=2))
do
echo I$i; ./fullgen $i code 6 ipr 2>err | gzip -9 > graphs/I$i.txt.gz
done
```

The compression resulted in only 1284KB for all 31846 graphs together:

*new_fullerenes.png* - new_fullerenes.png (20.51 KiB) Viewed 657 times

In order to access these graphs, new tool "ful" is used, and "ipr" is a symbolic link to it:

https://github.com/Hermann-SW/planar_gr ... b/main/ful
Passing one argument returns the number of graphs for the number of vertices:

Code: Select all

```
pi@pi400-64:~/planar_graph_playground $ ./ful 60
1812
pi@pi400-64:~/planar_graph_playground $ ./ipr 82
9
pi@pi400-64:~/planar_graph_playground $ ./ful 36
15
pi@pi400-64:~/planar_graph_playground $
```

Passing index additionally returns the extracted and converted to adjacency list graph:

Code: Select all

```
pi@pi400-64:~/planar_graph_playground $ ./ful 36 10
[[13,14,1],[0,2,32],[1,23,3],[2,4,33],[3,21,5],[4,6,34],[5,20,7],[6,8,27],[7,18,9],[8,10,28],[9,16,11],[10,12,29],[11,15,13],[12,0,30],[0,15,24],[14,12,16],[15,10,17],[16,18,25],[17,8,19],[18,20,26],[19,6,21],[20,4,22],[21,23,26],[22,2,24],[23,14,25],[24,17,26],[25,19,22],[7,28,35],[27,9,29],[28,11,30],[29,13,31],[30,32,35],[31,1,33],[32,3,34],[33,5,35],[34,27,31]]
pi@pi400-64:~/planar_graph_playground $ diff graphs/C36.10.a <(./ful 36 10)
pi@pi400-64:~/planar_graph_playground $
```

All this is done because I did not want to create each and every graph separately, now only 47 files got added:

Code: Select all

```
pi@pi400-64:~/planar_graph_playground $ ls graphs/[CI]*txt.gz | wc
47 47 847
pi@pi400-64:~/planar_graph_playground $
```

I embedded I82.1 with node.tetra.js, and two concave angles were reported:

Code: Select all

```
pi@pi400-64:~/planar_graph_playground $ ./rjs node.tetra.js <(./ipr 82 1) white -10
12 pentagons for graph
31 non-pentagons for graph
vertices: 0,34,45,70
max: 42
dists: 7 7 7 7 7 7
false
false
vertices: 0,34,45,70,46,27,28,69,11,12,58,59,60,50,51,33,71,72,73,74,75,19,1,2,3,6,5,4,7,8,9,10,29,30,31,32,47,48,49,62,63,64,65,66,67,68,76,77,78,79,80,81
[ 28, 24, 30 ]
concave 33 34 6 -120 0 240
concave 80 70 69 20.250103470494917 180 200.2501034704949
pal: [
[ 0.9, 0, 0 ],
[ 0, 0.7, 0.7 ],
[ 0, 0.9, 0 ],
[ 0.7, 0, 0.7 ],
[ 0, 0, 0.9 ],
[ 0.7, 0.7, 0 ]
]
M.length: 52
pi@pi400-64:~/planar_graph_playground $
```

These are the two concave angles with 240° and 200.25° in center:

*I82.1.anim.gif* - C82.1.anim.gif (95.62 KiB) Viewed 657 times