All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7

Source Notebook

A compactly encoded dataset containing all 30,368 unlabeled connected 3-regular graphs on 32 vertices with girth at least 7

Details

In graph theory, a cubic graph is a graph in which every vertex has degree three—equivalently, a 3-regular graph. Such graphs are also known as trivalent graphs.
This dataset employs differential encoding to compress graphs by storing only their differences. The compressed format uses 77.9% less storage space than storing full adjacency list representations for all 30,368 graphs.
Shortcode representation: Each graph is encoded as a sequence of vertex numbers representing edges (only higher-numbered neighbors per vertex). For instance, decoding (2 3 4 3 4 4) for a 4-vertex, 3-regular graph:
Vertex 1reads 2, 3, 4Edge: 1-2, Edge: 1-3, Edge: 1-4
Vertex 2reads 3, 4Edge: 2-3, Edge: 2-4
Vertex 3read 4Edge: 3-4
Vertex 4read nothingNo more entries
Prefix compression: each graph stores one byte indicating how many leading bytes match the previous graph, and only the remaining differing bytes.Example: The the two adjacency lists are ( 2 3 4 5 3 4 5 6 7 6 7 6 7 7 ) and (2 3 4 5 3 4 6 5 7 6 7 6 7 7). This compression is very effective when consecutive graphs share long common prefixes, which happens frequently in the systematic generation process.
The conversion algorithm leverages NumericArray for efficient data storage and faster processing.

Examples

Basic Examples (1) 

Retrieve the data as a NumericArray:

In[1]:=
ResourceData[\!\(\*
TagBox["\"\<All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7\>\"",
#& ,
BoxID -> "ResourceTag-All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7-Input",
AutoDelete->True]\)]
Out[1]=

Scope & Additional Elements (3) 

The following steps demonstrate how to convert the list into graphs. Start with the base cubic graph:

In[2]:=
baseRG = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 15, 19, 17, 21, 16, 20, 18, 23, 22, 24, 25, 26, 27, 28, 29, 30, 27, 30, 25, 31, 32, 28, 29, 31, 32, 31, 32};
nEdges = 32*3/2;
In[3]:=
data = ResourceData[\!\(\*
TagBox["\"\<All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7\>\"",
#& ,
BoxID -> "ResourceTag-All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7-Input",
AutoDelete->True]\)];
samebitFlagPos = NumericArray[
   Most[NestWhileList[With[{pos = #[[1]] + nEdges - #[[2]] + 1},
        {pos, If[pos > ndp, -1, data[[pos]]]}] &, {1, 0}, #[[2]] != -1 &]
     ][[All, 1]], "UnsignedInteger32"];
In[4]:=
adjacencyLists = NumericArray[Rest@Module[{k = 0, m = 0, dupLen, dupPos},
     NestList[(k++; dupPos = samebitFlagPos[[k]]; dupLen = data[[dupPos]]; #[[;; dupLen]]~Join~
         data[[dupPos + 1 ;; dupPos + nEdges - dupLen]]) &,
      baseRG, Length[samebitFlagPos]]], "UnsignedInteger8"];

Convert the data into adjacency lists:

In[5]:=
AdjacencyListToGraph[l_] := Module[{dsStk, ctArray, graphEdges, larger}, dsStk = CreateDataStructure["Stack", Reverse[l]]; ctArray = CreateDataStructure["FixedArray", ConstantArray[3, 32]]; graphEdges = CreateDataStructure["DynamicArray"]; Do[While[(! dsStk["EmptyQ"]) && ctArray[[k]] > 0 && k < dsStk["Peek"],
     ctArray["SetPart", k, ctArray[[k]] - 1]; larger = dsStk["Pop"]; ctArray["SetPart", larger, ctArray[[larger]] - 1]; graphEdges["Append", {k, larger}];], {k, 47}]; Graph[UndirectedEdge @@@ graphEdges["Elements"]]]

Choose several random cubic graphs from our database:

In[6]:=
Partition[With[{db = adjacencyLists},
   g1 = AdjacencyListToGraph /@ (db[[
        RandomInteger[{1, Length[db]}, 9]]] // Normal)
   ], 3] // Grid
Out[6]=

Analysis (2) 

The graphs in the database are 3-regular. For instances:

In[7]:=
g = {\!\(\*
GraphicsBox[
NamespaceBox["NetworkGraphics",
DynamicModuleBox[{Typeset`graph = HoldComplete[
Graph[{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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6,
            14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {12, 17}, {12,
            21}, {13, 16}, {13, 23}, {14, 24}, {14, 25}, {15, 26}, {
           16, 20}, {17, 27}, {18, 22}, {18, 23}, {19, 28}, {20, 29}, {21, 30}, {22, 24}, {23, 31}, {24, 29}, {25, 28}, {25,
            30}, {26, 30}, {26, 31}, {27, 28}, {27, 32}, {29, 32}, {
           31, 32}}}]]}, 
TagBox[GraphicsGroupBox[GraphicsComplexBox[CompressedData["
1:eJwBEQLu/SFib1JlAgAAACAAAAACAAAA/RMWjhbWAEAGqPe34LYCQEUeXbl/
0ANAqvsFiQV9BUCbiuGtd1r3P3KgIlpquQBAHjnd58OgAEAhbv94h7r4P8rv
gGQPVAxAVTo6vnnwAUCIX9KbW3rzPyMvSgKV1gNA+PUHLGcD9j9S6WW5YOYJ
QFLsuNWjn/c/piJpKUrY6D/kOb8552r9P8TA8gW8zARADu5l+c3EAEDUodn2
J5vRPxVJNB2pCQtAzMMUp33ECEAOPelCnXYMQLuJoQEC8O8/wGt6DnvJwD85
8iKPljkEQIQxaPNGM/Y/TA9pgCz69j8Qig6m9U0DQETdlKc3iwlAwJaGLCkQ
3D90P5um8lEKQNzQiqum7QRA6NiImOvu3T8khjM5sJvbP6TjXzx7gt0/zsSG
8AupB0B6MC31R/wEQPR2HN6zseU/NOOHVN8tBUCI55Lu3lwJQIi0VZ3k5dU/
pVwMq0Zc8D8AAAAAAAAAAAAAAAAAAAAA+dDhAmaD9z+6Z2C4OBrkPzGXCVEc
yeg/NqQ5MYvCA0CkUnWsbBz0P+iqOWQNigFAyOrCBxYoAEDYhQds8koBQPLf
sRzoxus/qp7P719bB0BWJk6GaU36P0RPg/5UN9g/4ExoWQaQ+T9sM45I7+wH
QM/fsJJnPfI/jTPQBNTS7T/3rY4iY6D6P5L6U7P9ivA/DzNmM5UT8T/ILu4+

"], {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6, 14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {
              12, 17}, {12, 21}, {13, 16}, {13, 23}, {14, 24}, {14, 25}, {15, 26}, {16, 20}, {17, 27}, {18, 22}, {18, 23}, {
              19, 28}, {20, 29}, {21, 30}, {22, 24}, {23, 31}, {24, 29}, {25, 28}, {25, 30}, {26, 30}, {26, 31}, {27, 28}, {
              27, 32}, {29, 32}, {31, 32}}, 0.03411115989240378]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03411115989240378], DiskBox[2, 0.03411115989240378], DiskBox[3, 0.03411115989240378], DiskBox[4, 0.03411115989240378], DiskBox[5, 0.03411115989240378], DiskBox[6, 0.03411115989240378], DiskBox[7, 0.03411115989240378], DiskBox[8, 0.03411115989240378], DiskBox[9, 0.03411115989240378], DiskBox[10, 0.03411115989240378], DiskBox[11, 0.03411115989240378], DiskBox[12, 0.03411115989240378], DiskBox[13, 0.03411115989240378], DiskBox[14, 0.03411115989240378], DiskBox[15, 0.03411115989240378], DiskBox[16, 0.03411115989240378], DiskBox[17, 0.03411115989240378], DiskBox[18, 0.03411115989240378], DiskBox[19, 0.03411115989240378], DiskBox[20, 0.03411115989240378], DiskBox[21, 0.03411115989240378], DiskBox[22, 0.03411115989240378], DiskBox[23, 0.03411115989240378], DiskBox[24, 0.03411115989240378], DiskBox[25, 0.03411115989240378], DiskBox[26, 0.03411115989240378], DiskBox[27, 0.03411115989240378], DiskBox[28, 0.03411115989240378], DiskBox[29, 0.03411115989240378], DiskBox[30, 0.03411115989240378], DiskBox[31, 0.03411115989240378], DiskBox[32, 0.03411115989240378]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None]\), \!\(\*
GraphicsBox[
NamespaceBox["NetworkGraphics",
DynamicModuleBox[{Typeset`graph = HoldComplete[
Graph[{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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6,
            14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {12, 17}, {12,
            23}, {13, 20}, {13, 24}, {14, 21}, {14, 25}, {15, 26}, {
           16, 21}, {16, 27}, {17, 25}, {18, 24}, {18, 28}, {19, 29}, {20, 30}, {22, 23}, {22, 28}, {23, 30}, {24, 26}, {25,
            31}, {26, 31}, {27, 29}, {27, 32}, {28, 29}, {30, 32}, {
           31, 32}}}]]}, 
TagBox[GraphicsGroupBox[GraphicsComplexBox[CompressedData["
1:eJwBEQLu/SFib1JlAgAAACAAAAACAAAAJPCdDz770z9STfjYeezqP2ZkNcgz
jOo/VKmiKMoT2T9H484+5Sz2P5yOmK/KpeA/AAAAAAAAAAC9MhvZEy3+PxqZ
hC6QF/c/AAAAAAAAAAAo9e5K+zz6P+8Ry6twCfM/vfUzvSFhAUD2XHgyKiP1
P9QbNnZvAgNACM+CtHo9wz9kmEYgYWjlP1l9IrrwuQFAFCnCbG/g3j9lyD29
ycgFQJWkdn/tz/w/6sLkl7gn6T/EGZSAKh0BQPJUOivxKuA/sWAykeEsBEDg
1GzeV934P9XVu3EoPgNAGW6AQfLT/z+U0xIqpIgHQF0oremeOOk/wObQufk6
AkBZqhY4jU4FQIHGTCB1ZwhAcB4PVJ9Z1j8MqE3yGm4FQPAkPat9O/E/urUA
ZobM9D+ssN7tA/r+PyT0zEmUR/w/O8sQU3rIAkDoQ5DfBCD4P9513WPGwAZA
FpRZftEn8z8ECmpkbboDQI9VlGgHxf4/GzfZZ1pu/D9iFSnTiV4LQOnAjlVU
APE/FADmOoiSC0AsOoA7nEn3P9K9iTxaBxBAfWiuB9gr8j8pgvGOj1UGQFxv
bAGvswpAoqCSo+hlAEC8bO94hmcBQB4QNRqcLP8/jDhxccyjB0DMjbD8MYIF
QAQCQhMt0gRA5uj6Thh2EEDOjCFHiS4AQOV1PMqfnwxAfrlY3XZPB0Bps+RN

"], {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6, 14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {
              12, 17}, {12, 23}, {13, 20}, {13, 24}, {14, 21}, {14, 25}, {15, 26}, {16, 21}, {16, 27}, {17, 25}, {18, 24}, {
              18, 28}, {19, 29}, {20, 30}, {22, 23}, {22, 28}, {23, 30}, {24, 26}, {25, 31}, {26, 31}, {27, 29}, {27, 32}, {
              28, 29}, {30, 32}, {31, 32}}, 0.03773711600949255]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03773711600949255], DiskBox[2, 0.03773711600949255], DiskBox[3, 0.03773711600949255], DiskBox[4, 0.03773711600949255], DiskBox[5, 0.03773711600949255], DiskBox[6, 0.03773711600949255], DiskBox[7, 0.03773711600949255], DiskBox[8, 0.03773711600949255], DiskBox[9, 0.03773711600949255], DiskBox[10, 0.03773711600949255], DiskBox[11, 0.03773711600949255], DiskBox[12, 0.03773711600949255], DiskBox[13, 0.03773711600949255], DiskBox[14, 0.03773711600949255], DiskBox[15, 0.03773711600949255], DiskBox[16, 0.03773711600949255], DiskBox[17, 0.03773711600949255], DiskBox[18, 0.03773711600949255], DiskBox[19, 0.03773711600949255], DiskBox[20, 0.03773711600949255], DiskBox[21, 0.03773711600949255], DiskBox[22, 0.03773711600949255], DiskBox[23, 0.03773711600949255], DiskBox[24, 0.03773711600949255], DiskBox[25, 0.03773711600949255], DiskBox[26, 0.03773711600949255], DiskBox[27, 0.03773711600949255], DiskBox[28, 0.03773711600949255], DiskBox[29, 0.03773711600949255], DiskBox[30, 0.03773711600949255], DiskBox[31, 0.03773711600949255], DiskBox[32, 0.03773711600949255]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None]\), \!\(\*
GraphicsBox[
NamespaceBox["NetworkGraphics",
DynamicModuleBox[{Typeset`graph = HoldComplete[
Graph[{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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6,
            14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {12, 17}, {12,
            21}, {13, 16}, {13, 23}, {14, 20}, {14, 24}, {15, 25}, {
           16, 26}, {17, 27}, {18, 24}, {18, 28}, {19, 29}, {20, 30}, {21, 26}, {22, 25}, {22, 28}, {23, 28}, {23, 31}, {24,
            32}, {25, 30}, {26, 32}, {27, 30}, {27, 31}, {29, 31}, {
           29, 32}}}]]}, 
TagBox[GraphicsGroupBox[GraphicsComplexBox[CompressedData["
1:eJwBEQLu/SFib1JlAgAAACAAAAACAAAAAAAAAAAAAADX52kGx1nqP4pM5zpP
J+A/VOPHWRoC0T+Id5HlhU7qP/E9CpIMU+g/ZLYlbh8Q0j/hXsuFUJP9PyCa
HVRRC88/7/a4Js9U9D+YjwwgQbT7PwAAAAAAAAAASK9H7H1J6T+m0lZ9qHz1
PxsNqoMh6/8/TslnbHy38T8n7VPTSPzwP36tLblEGARA1OBtT1098z/uwcqV
8gwAQIhke00Codo/DTKKwnE9AkDLlYuB18vyP1VzELnjVPc/fC5vC38hBUBQ
il3owRPPP9/t2SoIwgNAtImlDvEr7T+eDraA9dvlP3Zb3/Q+XwVAM3r1n5af
+T9YxaKTRzrYP6HLL12cXwFAuGeQVTc//j+nTP5cDKAIQMvEfH/gEfM/P8Z5
e6rH+D+6WQipCQoDQPBfN/C0sABAp6Yj8pRAAkCludjqUF33PyrZGTguEvA/
8KlYU0DzAED2kVKoKssFQJ7Ksle9cgxAigHN7G/V8z8b0XuXXg8LQA5jRyaa
N+E/GIpek22f+D8YKF20N9cKQOpgFuRhUQFAwKsuqsZw0j+0xpvvzewHQGAZ
sc9dtAVA0sjuMDhUCUCe+9v3EC4AQCwlvXXsRwZA4IF9wnFw/T9yBJtc1O4C
QOSbDGKqEgpA9OO4Pa4XDUDMvtvaI/wAQL4jrkuM6QdAbyV3r0Sp5z/de+00

"], {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6, 14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {
              12, 17}, {12, 21}, {13, 16}, {13, 23}, {14, 20}, {14, 24}, {15, 25}, {16, 26}, {17, 27}, {18, 24}, {18, 28}, {
              19, 29}, {20, 30}, {21, 26}, {22, 25}, {22, 28}, {23, 28}, {23, 31}, {24, 32}, {25, 30}, {26, 32}, {27, 30}, {
              27, 31}, {29, 31}, {29, 32}}, 0.03463687858816372]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03463687858816372], DiskBox[2, 0.03463687858816372], DiskBox[3, 0.03463687858816372], DiskBox[4, 0.03463687858816372], DiskBox[5, 0.03463687858816372], DiskBox[6, 0.03463687858816372], DiskBox[7, 0.03463687858816372], DiskBox[8, 0.03463687858816372], DiskBox[9, 0.03463687858816372], DiskBox[10, 0.03463687858816372], DiskBox[11, 0.03463687858816372], DiskBox[12, 0.03463687858816372], DiskBox[13, 0.03463687858816372], DiskBox[14, 0.03463687858816372], DiskBox[15, 0.03463687858816372], DiskBox[16, 0.03463687858816372], DiskBox[17, 0.03463687858816372], DiskBox[18, 0.03463687858816372], DiskBox[19, 0.03463687858816372], DiskBox[20, 0.03463687858816372], DiskBox[21, 0.03463687858816372], DiskBox[22, 0.03463687858816372], DiskBox[23, 0.03463687858816372], DiskBox[24, 0.03463687858816372], DiskBox[25, 0.03463687858816372], DiskBox[26, 0.03463687858816372], DiskBox[27, 0.03463687858816372], DiskBox[28, 0.03463687858816372], DiskBox[29, 0.03463687858816372], DiskBox[30, 0.03463687858816372], DiskBox[31, 0.03463687858816372], DiskBox[32, 0.03463687858816372]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None]\)};

All vertices have degree three:

In[8]:=
AllSameBy[#, v |-> v == 3] &@*VertexDegree /@ g
Out[8]=
In[9]:=
ResourceFunction["RegularGraphQ"] /@ g
Out[9]=

The girths or the lengths of shortest cycle in the graphs are at least seven:

In[10]:=
ResourceFunction["Girth"] /@ g
Out[10]=

The graphs are pair-wisely non-isomorphic or structurally inequivalent:

In[11]:=
IsomorphicGraphQ @@ (g[[{1, 2}]])
Out[11]=

The graphs may have different centrality:

In[12]:=
GraphicsRow[
 With[{bc = BetweennessCentrality[#]}, HighlightGraph[#, VertexList[#],
     VertexSize -> Thread[VertexList[#] -> Rescale[bc]]]] & /@ g]
Out[12]=
In[13]:=
GraphicsRow[
 With[{bc = ClosenessCentrality[#]}, HighlightGraph[#, VertexList[#], VertexSize -> Thread[VertexList[#] -> Rescale[bc]]]] & /@ g]
Out[13]=

The cubic graphs may share large isomorphic subgraphs:

In[14]:=
g2 = {\!\(\*
GraphicsBox[
NamespaceBox["NetworkGraphics",
DynamicModuleBox[{Typeset`graph = HoldComplete[
Graph[{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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6,
            14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {12, 17}, {12,
            23}, {13, 18}, {13, 20}, {14, 24}, {14, 25}, {15, 21}, {
           16, 24}, {16, 26}, {17, 27}, {18, 28}, {19, 29}, {20, 30}, {21, 25}, {22, 27}, {22, 31}, {23, 25}, {23, 32}, {24,
            31}, {26, 30}, {26, 32}, {27, 30}, {28, 29}, {28, 31}, {
           29, 32}}}]]}, 
TagBox[GraphicsGroupBox[GraphicsComplexBox[CompressedData["
1:eJwBEQLu/SFib1JlAgAAACAAAAACAAAAAgF3mHafCUDLgfdSs6cBQAgErWFi
RAhAqJXLpvUhCEDDWAMF6QcFQFoOUhnexABAc0xDYGCnBEABjtAB2pH1Pyck
jLztAwtA5AlTpME2BECJseS6DxsAQF2ocFoIaAZA2pmo+lOfBUBSb3yAzLDr
PygbqCi2wfg/TkjEeBq9BkDn2H3v3C/7PycLe4vKOwBAFVCw0CDEAEBgasUV
263KP92M8DMQdwtAXhhc32u3+T/WSYlUH6MCQPMKXB4UCAJABuc9/79u8D/6
oX+iU94JQAJSxROGS/w/cAd7RZ2q9j/El3sfvhMMQCSM718PXuQ/lIF9THVG
+D+IZJYgXq7TP43O7JVTBfQ/teVynqEaAkDS9i3UnLzgP+IwJKGk6gdABgJ+
w5IgAkAf2grMz4/8P5Rf5WntE+Q/yvB8Q3dWA0COvJ9IrM0HQAAAAAAAAAAA
zGup/2N96j8QvZMiv87TP3Jexp1QOQBA0sAljmOu8j+sO8lXNK/vP9zSQi1c
bOQ/XCeukWJEA0DMmWeD0VbhP4RBh8Qib94/xA16NaDz4j802YwNxnTgP9gn
mQYDa/U/8OpwwEvYwT9rglrcNwcAQNRw3g6k3vA/Nlj+zw6O+z8AAAAAAAAA
AML4ngC7C/g/wHg8tn2dvz8piGqrtuTrP8ckzY+gj/E/aD86XA8u8D8ABOZ4

"], {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6, 14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {
              12, 17}, {12, 23}, {13, 18}, {13, 20}, {14, 24}, {14, 25}, {15, 21}, {16, 24}, {16, 26}, {17, 27}, {18, 28}, {
              19, 29}, {20, 30}, {21, 25}, {22, 27}, {22, 31}, {23, 25}, {23, 32}, {24, 31}, {26, 30}, {26, 32}, {27, 30}, {
              28, 29}, {28, 31}, {29, 32}}, 0.03378606391783712]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03378606391783712], DiskBox[2, 0.03378606391783712], DiskBox[3, 0.03378606391783712], DiskBox[4, 0.03378606391783712], DiskBox[5, 0.03378606391783712], DiskBox[6, 0.03378606391783712], DiskBox[7, 0.03378606391783712], DiskBox[8, 0.03378606391783712], DiskBox[9, 0.03378606391783712], DiskBox[10, 0.03378606391783712], DiskBox[11, 0.03378606391783712], DiskBox[12, 0.03378606391783712], DiskBox[13, 0.03378606391783712], DiskBox[14, 0.03378606391783712], DiskBox[15, 0.03378606391783712], DiskBox[16, 0.03378606391783712], DiskBox[17, 0.03378606391783712], DiskBox[18, 0.03378606391783712], DiskBox[19, 0.03378606391783712], DiskBox[20, 0.03378606391783712], DiskBox[21, 0.03378606391783712], DiskBox[22, 0.03378606391783712], DiskBox[23, 0.03378606391783712], DiskBox[24, 0.03378606391783712], DiskBox[25, 0.03378606391783712], DiskBox[26, 0.03378606391783712], DiskBox[27, 0.03378606391783712], DiskBox[28, 0.03378606391783712], DiskBox[29, 0.03378606391783712], DiskBox[30, 0.03378606391783712], DiskBox[31, 0.03378606391783712], DiskBox[32, 0.03378606391783712]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None,
ImageSize->{140.0859375, Automatic}]\), \!\(\*
GraphicsBox[
NamespaceBox["NetworkGraphics",
DynamicModuleBox[{Typeset`graph = HoldComplete[
Graph[{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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6,
            14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {12, 17}, {12,
            23}, {13, 18}, {13, 20}, {14, 24}, {14, 25}, {15, 21}, {
           16, 24}, {16, 26}, {17, 27}, {18, 28}, {19, 29}, {20, 30}, {21, 25}, {22, 27}, {22, 31}, {23, 25}, {23, 32}, {24,
            31}, {26, 30}, {26, 32}, {27, 30}, {28, 29}, {28, 32}, {
           29, 31}}}]]}, 
TagBox[GraphicsGroupBox[GraphicsComplexBox[CompressedData["
1:eJwBEQLu/SFib1JlAgAAACAAAAACAAAAQ/qSpdr7DEBpPRGPLRMAQN6Rkfwp
ygpA0DUsgh9xCEDYvUfSbOgGQNg9B50otgNAcrHqoCwOCkAgAeCAutPoP5R9
kNZ9QQpA1WzWIoQcBUBpWVALxX4BQBwyBbVhzglAcDOODe1XA0Bxz5MOC3H8
P5tteJtEIf0/6urvtYNZB0C4OlQEQxICQIpJbTtteOc/PhosYLnXBEAw6VRa
g1XCP3b5dLXLZQdAwyTPGHLg+j8q9GBXy88CQObaf24CHwdADL08Z6Ih9D/a
vW+acYwFQCcein6UG/g/OIX37OptA0AyDID+KSgKQIEPbPM5XfU/aqv0V6QB
8j8c7AzQ5Af9P1KjcyW78vs/xzL+3zBZAEBmU/M1kmXnPzis+gF3vwhAxEUR
LOqt/D86moRIt8rxP06L0CBIifU/1yrdAfC59j971UrgK/sFQHQIqd0NSPE/
/QOCz2X09z8AAAAAAAAAAAE1awE5O/Y/sRPlub21CECMRtZIjNTpP934tOV9
qvc/ymsbpVYTAUBCoMiNcrsBQAjXCAIZUMY//jij0Sdt/j97DrFX5erzPzxf
gnU9GOo/AAAAAAAAAAC/X4ZBrUkDQDAux6nKzds/FjZ9ao0g9T+OqLzp2M3g
P9hlCxkh0fA/uIK9ET9k5D+cTuSNuVPfP0Bx0eKSMtA/kjRLRs7ABkCrgOVt

"], {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 7}, {3, 8}, {4, 9}, {4, 10}, {5, 11}, {5, 12}, {6, 13}, {6, 14}, {7, 15}, {7, 16}, {8, 17}, {8, 18}, {9, 19}, {9, 20}, {10, 21}, {10, 22}, {11, 15}, {11, 19}, {
              12, 17}, {12, 23}, {13, 18}, {13, 20}, {14, 24}, {14, 25}, {15, 21}, {16, 24}, {16, 26}, {17, 27}, {18, 28}, {
              19, 29}, {20, 30}, {21, 25}, {22, 27}, {22, 31}, {23, 25}, {23, 32}, {24, 31}, {26, 30}, {26, 32}, {27, 30}, {
              28, 29}, {28, 32}, {29, 31}}, 0.03454639417673089]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03454639417673089], DiskBox[2, 0.03454639417673089], DiskBox[3, 0.03454639417673089], DiskBox[4, 0.03454639417673089], DiskBox[5, 0.03454639417673089], DiskBox[6, 0.03454639417673089], DiskBox[7, 0.03454639417673089], DiskBox[8, 0.03454639417673089], DiskBox[9, 0.03454639417673089], DiskBox[10, 0.03454639417673089], DiskBox[11, 0.03454639417673089], DiskBox[12, 0.03454639417673089], DiskBox[13, 0.03454639417673089], DiskBox[14, 0.03454639417673089], DiskBox[15, 0.03454639417673089], DiskBox[16, 0.03454639417673089], DiskBox[17, 0.03454639417673089], DiskBox[18, 0.03454639417673089], DiskBox[19, 0.03454639417673089], DiskBox[20, 0.03454639417673089], DiskBox[21, 0.03454639417673089], DiskBox[22, 0.03454639417673089], DiskBox[23, 0.03454639417673089], DiskBox[24, 0.03454639417673089], DiskBox[25, 0.03454639417673089], DiskBox[26, 0.03454639417673089], DiskBox[27, 0.03454639417673089], DiskBox[28, 0.03454639417673089], DiskBox[29, 0.03454639417673089], DiskBox[30, 0.03454639417673089], DiskBox[31, 0.03454639417673089], DiskBox[32, 0.03454639417673089]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None,
ImageSize->{142.953125, Automatic}]\)};

A subgraph of the second entry in the list above:

In[15]:=
g2s = Graph[{
UndirectedEdge[1, 2], 
UndirectedEdge[1, 3], 
UndirectedEdge[1, 4], 
UndirectedEdge[2, 5], 
UndirectedEdge[2, 6], 
UndirectedEdge[3, 7], 
UndirectedEdge[3, 8], 
UndirectedEdge[4, 9], 
UndirectedEdge[4, 10], 
UndirectedEdge[5, 11], 
UndirectedEdge[5, 12], 
UndirectedEdge[6, 13], 
UndirectedEdge[6, 14], 
UndirectedEdge[7, 15], 
UndirectedEdge[7, 16], 
UndirectedEdge[8, 17], 
UndirectedEdge[8, 18], 
UndirectedEdge[9, 19], 
UndirectedEdge[9, 20], 
UndirectedEdge[10, 21], 
UndirectedEdge[10, 22], 
UndirectedEdge[11, 15], 
UndirectedEdge[11, 19], 
UndirectedEdge[12, 17], 
UndirectedEdge[12, 23], 
UndirectedEdge[13, 18], 
UndirectedEdge[13, 20], 
UndirectedEdge[14, 24], 
UndirectedEdge[14, 25], 
UndirectedEdge[15, 21], 
UndirectedEdge[16, 24], 
UndirectedEdge[16, 26], 
UndirectedEdge[17, 27], 
UndirectedEdge[18, 28], 
UndirectedEdge[19, 29], 
UndirectedEdge[20, 30], 
UndirectedEdge[21, 25], 
UndirectedEdge[22, 27], 
UndirectedEdge[22, 31], 
UndirectedEdge[23, 25], 
UndirectedEdge[23, 32], 
UndirectedEdge[24, 31], 
UndirectedEdge[26, 30], 
UndirectedEdge[26, 32], 
UndirectedEdge[27, 30], 
UndirectedEdge[28, 29]}]
Out[15]=

The subgraph contains 100% vertices and 95.8% edges of the graphs above:

In[16]:=
PercentForm[Length /@ {VertexList[g2s], EdgeList[g2s]}/{32., 48.}]
Out[16]=

Show that the graph is indeed the subgraph of both entries above:

In[17]:=
Length[FindIsomorphicSubgraph[#, g2s]] > 0 & /@ g2
Out[17]=

Highlight the maximal isomorphic sub-structure of both entries with dashed lines:

In[18]:=
GraphicsRow[
 With[{g = #}, HighlightGraph[
     Graph[g, EdgeStyle -> Directive[Thick, StandardBlue]], FindIsomorphicSubgraph[g, g2s], GraphHighlightStyle -> {"Thick", "Dashed"}]
    ] & /@ g2]
Out[18]=

Shenghui Yang, "All Unlabeled Cubic Graphs of Order 32 with Girth at Least 7" from the Wolfram Data Repository (2026)  

Data Resource History

Source Metadata

See Also

Data Downloads

Publisher Information