All Unlabeled Cubic Graphs of Order 18 with Girth 3

Source Notebook

A compactly encoded dataset containing all 41,301 unlabeled connected 3-regular graphs on 18 vertices with girth 3

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.5% less storage space than storing full adjacency list representations for all 41,301 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 1: reads 2 3 4 -> Edge: 1-2, Edge: 1-3, Edge: 1-4 Vertex 2: reads 3 4 -> Edge: 2-3, Edge: 2-4 Vertex 3: reads 4 -> Edge: 3-4 Vertex 4: reads nothing (no 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 18 with Girth 3\>\"",
#& ,
BoxID -> "ResourceTag-All Unlabeled Cubic Graphs of Order 18 with Girth 3-Input",
AutoDelete->True]\)]
Out[1]=

Scope & Additional Elements (4) 

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

In[2]:=
baseRG = {2, 3, 4, 3, 4, 5, 5, 6, 7, 8, 8, 9, 9, 10, 11, 12, 12, 13, 13, 14, 15, 16, 17, 18, 17, 18, 18};

Convert the data into adjacency lists:

In[3]:=
data = ResourceData[\!\(\*
TagBox["\"\<All Unlabeled Cubic Graphs of Order 18 with Girth 3\>\"",
#& ,
BoxID -> "ResourceTag-All Unlabeled Cubic Graphs of Order 18 with Girth 3-Input",
AutoDelete->True]\)]; ndp = Length[data]; nEdges = 18*3/2; With[{samebitFlagPos = NumericArray[Most[NestWhileList[
       With[{pos = #[[1]] + nEdges - #[[2]] + 1}, {pos, If[pos > 250329, -1, data[[pos]]]}] &, {1, 0},
       #[[2]] != -1 &]][[All, 1]], "UnsignedInteger32"]},
 adjacencyLists = NumericArray@Module[{k = 0, m = 0, dupLen, dupPos},
    NestList[(k++;
       dupPos = samebitFlagPos[[k]];
       dupLen = data[[dupPos]];
       #[[;; dupLen ]]~Join~
        data[[dupPos + 1 ;; dupPos + 27 - dupLen]]) &,
     baseRG, Length[samebitFlagPos]]]
 ]

Define a function to convert the given adjacency list to the corresponding graph:

In[4]:=
AdjacencyListToGraph[l_] := Module[{dsStk, ctArray, graphEdges, larger},
  dsStk = CreateDataStructure["Stack", Reverse[l]];
  ctArray = CreateDataStructure["FixedArray", ConstantArray[3, 18]];
  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, 17}];
  Graph[UndirectedEdge @@@ graphEdges["Elements"]]
  ]

Choose several random cubic graphs from our database:

In[5]:=
SeedRandom["CubicGraph"];
Partition[With[{db = adjacencyLists},
   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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 7}, {4, 8}, {5, 9}, {5, 10}, {6, 11}, {6, 12}, {7, 8}, {7, 9}, {8, 13}, {9, 14}, {10, 15}, {10, 16}, {11, 12}, {11, 14}, {12, 17}, {13, 17}, {13, 18}, {14, 15}, {15,
            18}, {16, 17}, {16, 18}}}]]}, 
TagBox[GraphicsGroupBox[
          GraphicsComplexBox[{{3.886899807174282, 1.8284240117561266`}, {3.4891684069838353`, 1.3380902097792098`}, {3.655107868071542, 0.713745248142984}, {3.248760863527653, 2.863345127043116}, {2.4125421926103816`, 1.5925999317611068`}, {2.670265602575225, 0.}, {
           2.7014999334035354`, 3.20818017160013}, {2.060921304292229,
            3.1001489899385466`}, {2.318194790511872, 2.269234150435771}, {1.1361185511810579`, 1.5645968760547693`}, {2.0162314134589696`, 0.26801613992040485`}, {1.512430244332397, 0.07132065959858336}, {0.8884568435572102, 2.404448006372906}, {1.687741421751081, 1.3358907652224707`}, {0.6554256684531505, 1.7866857411091797`}, {0.07634756298281409, 1.460130364465261}, {0.6874835342228633, 1.0383666323593521`}, {0., 2.209567970766928}}, {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 7}, {4, 8}, {5, 9}, {5, 10}, {6, 11}, {6, 12}, {
              7, 8}, {7, 9}, {8, 13}, {9, 14}, {10, 15}, {10, 16}, {
              11, 12}, {11, 14}, {12, 17}, {13, 17}, {13, 18}, {14, 15}, {15, 18}, {16, 17}, {16, 18}}, 0.03627899050268463]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03627899050268463], DiskBox[2, 0.03627899050268463], DiskBox[3, 0.03627899050268463], DiskBox[4, 0.03627899050268463], DiskBox[5, 0.03627899050268463], DiskBox[6, 0.03627899050268463], DiskBox[7, 0.03627899050268463], DiskBox[8, 0.03627899050268463], DiskBox[9, 0.03627899050268463], DiskBox[10, 0.03627899050268463], DiskBox[11, 0.03627899050268463], DiskBox[12, 0.03627899050268463], DiskBox[13, 0.03627899050268463], DiskBox[14, 0.03627899050268463], DiskBox[15, 0.03627899050268463], DiskBox[16, 0.03627899050268463], DiskBox[17, 0.03627899050268463], DiskBox[18, 0.03627899050268463]}}]],
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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 7}, {4, 8}, {5, 9}, {5, 10}, {6, 11}, {6, 12}, {7, 8}, {7, 9}, {8, 13}, {9, 14}, {10, 11}, {10, 15}, {11, 16}, {12, 14}, {12, 17}, {13, 15}, {13, 17}, {14, 16}, {15,
            18}, {16, 18}, {17, 18}}}]]}, 
TagBox[GraphicsGroupBox[
          GraphicsComplexBox[{{0., 0.9862411696523348}, {
           0.19579231876698944`, 0.36396112558481397`}, {
           0.7208537022510815, 0.08548776088360621}, {
           0.21505854013367554`, 2.1648696687923867`}, {
           1.1199734257904026`, 0.8051818920206623}, {
           2.0024132805276134`, 0.}, {0.7321619128427612, 2.456720462824733}, {1.188437052220671, 2.8234688665774197`}, {1.407535435013787, 1.6544477481123028`}, {2.2069380912883556`, 0.8046114979499827}, {2.829981277751245, 0.07976389524095917}, {2.881486297397175, 0.8697315761229356}, {2.4356330843983005`, 2.6334359206015767`}, {2.5254923303093832`, 1.266005723274709}, {2.884928854955784, 1.81089340829178}, {3.488416865475339, 0.7684197788792823}, {3.3053489925154773`, 2.0103014193474165`}, {3.813429751927732, 1.588851794749485}}, {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 7}, {4, 8}, {5, 9}, {5, 10}, {6, 11}, {6, 12}, {
              7, 8}, {7, 9}, {8, 13}, {9, 14}, {10, 11}, {10, 15}, {
              11, 16}, {12, 14}, {12, 17}, {13, 15}, {13, 17}, {14, 16}, {15, 18}, {16, 18}, {17, 18}}, 0.03580192296258493]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03580192296258493], DiskBox[2, 0.03580192296258493], DiskBox[3, 0.03580192296258493], DiskBox[4, 0.03580192296258493], DiskBox[5, 0.03580192296258493], DiskBox[6, 0.03580192296258493], DiskBox[7, 0.03580192296258493], DiskBox[8, 0.03580192296258493], DiskBox[9, 0.03580192296258493], DiskBox[10, 0.03580192296258493], DiskBox[11, 0.03580192296258493], DiskBox[12, 0.03580192296258493], DiskBox[13, 0.03580192296258493], DiskBox[14, 0.03580192296258493], DiskBox[15, 0.03580192296258493], DiskBox[16, 0.03580192296258493], DiskBox[17, 0.03580192296258493], DiskBox[18, 0.03580192296258493]}}]],
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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 5}, {4, 7}, {5, 8}, {6, 9}, {6, 10}, {7, 9}, {7, 11}, {8, 12}, {8, 13}, {9, 14}, {10, 12}, {10, 15}, {11, 16}, {11, 17}, {12, 18}, {13, 16}, {13, 17}, {14, 15}, {14,
            18}, {15, 16}, {17, 18}}}]]}, 
TagBox[GraphicsGroupBox[
          GraphicsComplexBox[{{4.107154790465187, 1.2426261464308106`}, {3.8543317183073555`, 1.695833414747544}, {3.678185179821935, 0.7049200817456165}, {3.1498833152702623`, 1.5270776494207592`}, {2.9273185434263476`, 2.218575207524867}, {2.5886311340327954`, 0.14966316329042173`}, {2.0317698966512503`, 1.179110125777803}, {1.6526416336133363`, 2.2625221903171653`}, {1.814689466535743, 0.08988035711013187}, {1.4007537086739958`, 0.3534843936264903}, {0.8615355279865212, 1.7352100600837475`}, {1.1235354129351596`, 1.2461036117014246`}, {0.5371261696621226, 2.4028494019144118`}, {0.7056823165277657, 0.}, {
           0.37668660129137943`, 0.4415391044456022}, {
           0.15316203477873414`, 1.5125081472402977`}, {0., 1.9485734405661257`}, {0.21458037484973924`, 0.9416788637334103}}, {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 5}, {4, 7}, {5, 8}, {6, 9}, {6, 10}, {7, 9}, {7,
               11}, {8, 12}, {8, 13}, {9, 14}, {10, 12}, {10, 15}, {
              11, 16}, {11, 17}, {12, 18}, {13, 16}, {13, 17}, {14, 15}, {14, 18}, {15, 16}, {17, 18}}, 0.037685594721123164`]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.037685594721123164], DiskBox[2, 0.037685594721123164], DiskBox[3, 0.037685594721123164], DiskBox[4, 0.037685594721123164], DiskBox[5, 0.037685594721123164], DiskBox[6, 0.037685594721123164], DiskBox[7, 0.037685594721123164], DiskBox[8, 0.037685594721123164], DiskBox[9, 0.037685594721123164], DiskBox[10, 0.037685594721123164], DiskBox[11, 0.037685594721123164], DiskBox[12, 0.037685594721123164], DiskBox[13, 0.037685594721123164], DiskBox[14, 0.037685594721123164], DiskBox[15, 0.037685594721123164], DiskBox[16, 0.037685594721123164], DiskBox[17, 0.037685594721123164], DiskBox[18, 0.037685594721123164]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None]\)};

All vertices have degree three:

In[8]:=
VertexDegree /@ g
Out[8]=
In[9]:=
ResourceFunction["RegularGraphQ"] /@ g
Out[9]=

The girths or the lengths of shortest cycle in the graphs are three:

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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {3, 5}, {3, 7}, {4, 6}, {4, 8}, {5, 9}, {6, 10}, {7, 9}, {7, 11}, {8, 12}, {8, 13}, {9, 14}, {10, 12}, {10, 15}, {11, 13}, {11, 16}, {12, 16}, {13, 17}, {14, 17}, {14, 18}, {15,
            17}, {15, 18}, {16, 18}}}]]}, 
TagBox[GraphicsGroupBox[
          GraphicsComplexBox[{{3.5767636199283324`, 0.7566577054584677}, {3.115268648046907, 1.1803920498851395`}, {3.4903969860818784`, 1.803708546196591}, {2.7728907674402445`, 0.01056288252302462}, {3.0879229496589136`, 2.282690854428834}, {2.273067001059624, 0.43743052215989686`}, {2.4740947944709832`, 2.2168325751975813`}, {1.6245575578519589`, 0.}, {
           2.0699596314248745`, 2.810639738053094}, {
           0.9815470818768645, 0.41898104615319565`}, {
           1.4753323977046753`, 1.6937902202123785`}, {
           0.6603649050282645, 0.05412435435912011}, {
           1.194454736630604, 1.0324124513684203`}, {
           0.8253655380326937, 2.6434451976532842`}, {
           0.0191757160439594, 1.1701759804007712`}, {
           0.5124049621135198, 1.139823120149078}, {
           0.5208607102809957, 1.8280843233562947`}, {0., 1.9771712786371278`}}, {
{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, 5}, {3, 7}, {4, 6}, {4, 8}, {5, 9}, {6, 10}, {7, 9}, {7,
               11}, {8, 12}, {8, 13}, {9, 14}, {10, 12}, {10, 15}, {
              11, 13}, {11, 16}, {12, 16}, {13, 17}, {14, 17}, {14, 18}, {15, 17}, {15, 18}, {16, 18}}, 0.03423757805582012]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.03423757805582012], DiskBox[2, 0.03423757805582012], DiskBox[3, 0.03423757805582012], DiskBox[4, 0.03423757805582012], DiskBox[5, 0.03423757805582012], DiskBox[6, 0.03423757805582012], DiskBox[7, 0.03423757805582012], DiskBox[8, 0.03423757805582012], DiskBox[9, 0.03423757805582012], DiskBox[10, 0.03423757805582012], DiskBox[11, 0.03423757805582012], DiskBox[12, 0.03423757805582012], DiskBox[13, 0.03423757805582012], DiskBox[14, 0.03423757805582012], DiskBox[15, 0.03423757805582012], DiskBox[16, 0.03423757805582012], DiskBox[17, 0.03423757805582012], DiskBox[18, 0.03423757805582012]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None,
ImageSize->{144.44270833333314`, 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}, {Null, {{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 5}, {4, 7}, {5, 8}, {6, 9}, {6, 10}, {7, 8}, {7, 11}, {8, 12}, {9, 11}, {9, 13}, {10, 13}, {10, 14}, {11, 15}, {12, 14}, {12, 16}, {13, 17}, {14, 18}, {15, 17}, {15,
            18}, {16, 17}, {16, 18}}}]]}, 
TagBox[GraphicsGroupBox[
          GraphicsComplexBox[{{0., 1.5897192160001918`}, {
           0.20199555951204218`, 1.1659922269251928`}, {
           0.7018235522234355, 2.05046895253602}, {0.6046995725631241,
            0.8055348972514191}, {0.7686855862428359, 0.2525531070606044}, {1.9639831585061276`, 2.4278021842392326`}, {1.6922598723338056`, 0.7151336374168423}, {1.924600434804453, 0.}, {
           2.7843480299508068`, 2.2837104037293097`}, {
           3.164554684793477, 2.198700755666302}, {2.765449617293349, 1.273769953995252}, {3.2218803048682823`, 0.16123712456880357`}, {3.8402771739433645`, 2.3108682264938105`}, {3.622292832975111, 1.1339718707494262`}, {3.9851254742448043`, 1.068338634906453}, {4.289394541796495, 0.3680687154595319}, {4.514659749625816, 1.4631795462785326`}, {4.5674051459682055`, 0.7655357411312405}}, {
{Hue[0.6, 0.7, 0.7], Opacity[0.7], CapForm["Round"], Arrowheads[0.], ArrowBox[{{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 5}, {3, 6}, {4, 5}, {4, 7}, {5, 8}, {6, 9}, {6, 10}, {7, 8}, {7,
               11}, {8, 12}, {9, 11}, {9, 13}, {10, 13}, {10, 14}, {
              11, 15}, {12, 14}, {12, 16}, {13, 17}, {14, 18}, {15, 17}, {15, 18}, {16, 17}, {16, 18}}, 0.040515375116568234`]}, 
{Hue[0.6, 0.5, 1.], EdgeForm[{GrayLevel[0], Opacity[0.7]}], DiskBox[1, 0.040515375116568234], DiskBox[2, 0.040515375116568234], DiskBox[3, 0.040515375116568234], DiskBox[4, 0.040515375116568234], DiskBox[5, 0.040515375116568234], DiskBox[6, 0.040515375116568234], DiskBox[7, 0.040515375116568234], DiskBox[8, 0.040515375116568234], DiskBox[9, 0.040515375116568234], DiskBox[10, 0.040515375116568234], DiskBox[11, 0.040515375116568234], DiskBox[12, 0.040515375116568234], DiskBox[13, 0.040515375116568234], DiskBox[14, 0.040515375116568234], DiskBox[15, 0.040515375116568234], DiskBox[16, 0.040515375116568234], DiskBox[17, 0.040515375116568234], DiskBox[18, 0.040515375116568234]}}]],
MouseAppearanceTag["NetworkGraphics"]],
AllowKernelInitialization->False]],
DefaultBaseStyle->"NetworkGraphics",
FormatType->TraditionalForm,
FrameTicks->None,
ImageSize->{196.4921875, Automatic}]\)};

A subgraph of the second entry in the list above:

In[15]:=
g2s = Graph[{7 \[UndirectedEdge] 11, 5 \[UndirectedEdge] 8, 2 \[UndirectedEdge] 5, 9 \[UndirectedEdge] 11, 11 \[UndirectedEdge] 15, 16 \[UndirectedEdge] 17, 3 \[UndirectedEdge] 6, 1 \[UndirectedEdge] 4, 10 \[UndirectedEdge] 13, 10 \[UndirectedEdge] 14, 16 \[UndirectedEdge] 18, 15 \[UndirectedEdge] 18, 12 \[UndirectedEdge] 14, 4 \[UndirectedEdge] 7, 7 \[UndirectedEdge] 8, 1 \[UndirectedEdge] 3, 6 \[UndirectedEdge] 10, 15 \[UndirectedEdge] 17, 9 \[UndirectedEdge] 13, 4 \[UndirectedEdge] 5, 14 \[UndirectedEdge] 18}]
Out[15]=

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

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

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

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

Highlight the isomorphic sub-structure of the first entry with dashed lines:

In[18]:=
With[{g = g2[[1]]}, HighlightGraph[g, FindIsomorphicSubgraph[g, g2s], GraphHighlightStyle -> {Blue, "Thick", "Dashed"}]]
Out[18]=

Shenghui Yang, "All Unlabeled Cubic Graphs of Order 18 with Girth 3" from the Wolfram Data Repository (2026)  

Data Resource History

Source Metadata

See Also

Data Downloads

Publisher Information