Local Graph

Author

Eric W. Weisstein
May 16, 2024

This notebook downloaded from http://mathworld.wolfram.com/notebooks/GraphTheory/LocalGraph.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/LocalGraph.html.

©2024 Wolfram Research, Inc. except for portions noted otherwise

Examples

<<MathWorld`Graphs`

"IcosahedralGraph" -> {"Cycle", 5}

"The only locally pentagonal (cycle graph) graph is the icosahedral graph" (Brouwer et al. 1989, p. 5)

g=Annotate[GraphData[gn="IcosahedralGraph"],{EdgeStyle->Gray,VertexStyle->Black,VertexSize->{"Scaled",.04}}]

LocalGraph[g,ImageSize->Small]

GraphData[gn,"Local"]

GraphData[gn,"LocalGraph"]

GraphData[gn,"LocalGraph","Name"]

alist=AdjacencyList[g]

Length[alist]

RecognizeGraph[Subgraph[g,#]]&/@alist//Tally

GraphicsGrid[Partition[
HighlightGraph[g,{Subgraph[g,#2],Style[#,Blue]}]&@@@Transpose[{VertexList[g],alist}],UpTo[4]],ImageSize->600]

"2C3" -> {"Path", 2}

g=Annotate[GraphData[gn="2C3"],{EdgeStyle->Gray,VertexStyle->Black,VertexSize->{"Scaled",.04}}]

LocalGraph[g,ImageSize->Small]

GraphData[gn,"Local"]

GraphData[gn,"LocalGraph"]

GraphData[gn,"LocalGraph","Name"]

alist=AdjacencyList[g]

Length[alist]

RecognizeGraph[Subgraph[g,#]]&/@alist//Tally

GraphicsGrid[Partition[
HighlightGraph[g,{Subgraph[g,#2],Style[#,Blue]}]&@@@Transpose[{VertexList[g],alist}],UpTo[3]],ImageSize->600]

"2C4" -> {"Empty", 2}

g=Annotate[GraphData[gn="2C4"],{EdgeStyle->Gray,VertexStyle->Black,VertexSize->{"Scaled",.04}}]

LocalGraph[g,ImageSize->Small]

GraphData[gn,"Local"]

GraphData[gn,"LocalGraph"]

GraphData[gn,"LocalGraph","Name"]

alist=AdjacencyList[g]

Length[alist]

RecognizeGraph[Subgraph[g,#]]&/@alist//Tally

GraphicsGrid[Partition[
HighlightGraph[g,{Subgraph[g,#2],Style[#,Blue]}]&@@@Transpose[{VertexList[g],alist}],UpTo[4]],ImageSize->600]

{"Circulant", {16, {2, 6, 8}}} -> "ButterflyGraph"

g=Annotate[GraphData[gn={"Circulant",{16,{2,6,8}}}],{EdgeStyle->Gray,VertexStyle->Black,VertexSize->{"Scaled",.04}}]

LocalGraph[g,ImageSize->Small]

GraphData[gn,"Local"]

GraphData[gn,"LocalGraph"]

GraphData[gn,"LocalGraph","Name"]

alist=AdjacencyList[g]

Length[alist]

RecognizeGraph[Subgraph[g,#]]&/@alist//Tally

GraphicsGrid[Partition[
HighlightGraph[g,{Subgraph[g,#2],Style[#,Blue]}]&@@@Transpose[{VertexList[g],alist}],UpTo[4]],ImageSize->600]

Parametrized families

<<MathWorld`Graphs`

Alkane

seq=Table[GraphData[{"Alkane",n},"Local"],{n,10}]

AlternatingGroupGraph

seq=Table[GraphData[{"AlternatingGroupGraph",n},"Local"],{n,2,6}]

Andrasfai

seq=Table[GraphData[{"Andrasfai",n},"Local"],{n,20}]

Antelope n×n

seq=Table[GraphData[{"Antelope",{n,n}},"Local"],{n,20}]

Antiprism

Entity["Graph",{"Antiprism",n}]["Local"]

seq=Table[GraphData[{"Antiprism",n},"Local"],{n,3,25}]

Table[GraphData[{"Antiprism",n},"LocalGraphName"],{n,3,25}]

Apollonian

seq=Table[GraphData[{"Apollonian",n},"Local"],{n,5}]

Barbell

seq=Table[GraphData[{"Barbell",n},"Local"],{n,3,20}]

BlackBishop n×n

seq=Table[GraphData[{"BlackBishop",{n,n}},"Local"],{n,20}]

Bishop n×n

seq=Table[GraphData[{"Bishop",{n,n}},"Local"],{n,20}]

Book

seq=Table[GraphData[{"Book",n},"Local"],{n,20}]

Bruhat

seq=Table[GraphData[{"Bruhat",n},"Local"],{n,6}]

Camel n×n

seq=Table[GraphData[{"Camel",{n,n}},"Local"],{n,20}]

Centipede

seq=Table[GraphData[{"Centipede",n},"Local"],{n,10}]

CocktailParty

seq=Table[GraphData[{"CocktailParty",n},"Local"],{n,20}]

Complete

Entity["Graph",{"Complete",n}]["Local"]

seq=Table[GraphData[{"Complete",n},"Local"],{n,30}]

Table[GraphData[{"Complete",n},"LocalGraphName"],{n,30}]

CompleteBipartite n×n

Entity["Graph",{"CompleteBipartite",{n,n}}]["Local"]

seq=Table[GraphData[{"CompleteBipartite",{n,n}},"Local"],{n,20}]

Table[GraphData[{"CompleteBipartite",{n,n}},"LocalGraphName"],{n,20}]

CompleteBipartite m×n

Entity["Graph",{"CompleteBipartite",{m,n}}]["Local"]

DeleteCases[Flatten[Table[{
{m,n},
GraphData[{"CompleteBipartite",{m,n}},"Local"],
Piecewise[{{True,m==n}},False]
},{n,10},{m,n}],1],{_,x_,x_}]

CompleteTripartite n×n×n

Entity["Graph",{"CompleteTripartite",{n,n,n}}]["Local"]

seq=Table[GraphData[{"CompleteTripartite",{n,n,n}},"Local"],{n,10}]

Table[GraphData[{"CompleteTripartite",{n,n,n}},"LocalGraphName"],{n,10}]

CompleteTripartite k×m×n

Entity["Graph",{"CompleteTripartite",{k,m,n}}]["Local"]

DeleteCases[Flatten[Table[{
{k,m,n},
GraphData[{"CompleteTripartite",{k,m,n}},"Local"],
k==m==n
},{n,10},{m,n},{k,m}],2],{_,x_,x_}]

CrossedPrism

seq=Table[GraphData[{"CrossedPrism",2n},"Local"],{n,2,12}]

Crown

seq=Table[GraphData[{"Crown",n},"Local"],{n,20}]

CubeConnectedCycle

Entity["Graph",{"CubeConnectedCycle",n}]["Local"]

seq=Table[GraphData[{"CubeConnectedCycle",n},"Local"],{n,3,8}]

Table[GraphData[{"CubeConnectedCycle",n},"LocalGraphName"],{n,3,8}]

Cycle

Entity["Graph",{"Cycle",n}]["Local"]

seq=Table[GraphData[{"Cycle",n},"Local"],{n,3,30}]

Table[GraphData[{"Cycle",n},"LocalGraphName"],{n,3,30}]

CycleComplement

seq=Table[GraphData[{"CycleComplement",n},"Local"],{n,3,20}]

DiagonalIntersection

seq=Table[GraphData[{"DiagonalIntersection",n},"Local"],{n,3,14}]

Dipyramid

seq=Table[GraphData[{"Dipyramid",n},"Local"],{n,3,20}]

DorogovtsevGoltsevMendes

seq=Table[GraphData[{"DorogovtsevGoltsevMendes",n},"Local"],{n,0,7}]

DoubleCone

seq=Table[GraphData[{"DoubleCone",n},"Local"],{n,3,20}]

Empty

Entity["Graph",{"Empty",n}]["Local"]

seq=Table[GraphData[{"Empty",n},"Local"],{n,30}]

FibonacciCube

seq=Table[GraphData[{"FibonacciCube",n},"Local"],{n,15}]

Fiveleaper n×n

seq=Table[GraphData[{"Fiveleaper",{n,n}},"Local"],{n,20}]

Flower

seq=Table[GraphData[{"Flower",n},"Local"],{n,5,20}]

FoldedCube

seq=Table[GraphData[{"FoldedCube",n},"Local"],{n,2,10}]

Gear

seq=Table[GraphData[{"Gear",n},"Local"],{n,3,20}]

Giraffe n×n

seq=Table[GraphData[{"Giraffe",{n,n}},"Local"],{n,20}]

Goldberg

seq=Table[GraphData[{"Goldberg",n},"Local"],{n,3,20}]

Table[GraphData[{"Goldberg",n},"LocalGraphName"],{n,3,20}]

Grid n×n

Entity["Graph",{"Grid",{n,n}}]["Local"]

seq=Table[GraphData[{"Grid",{n,n}},"Local"],{n,20}]

Table[GraphData[{"Grid",{n,n}},"LocalGraphName"],{n,20}]

Grid m×n

Entity["Graph",{"Grid",{m,n}}]["Local"]

DeleteCases[Flatten[Table[{
{m,n},
GraphData[{"Grid",{m,n}},"Local"],
Piecewise[{{True,m n==2||m==n==2}},False]
},{n,10},{m,n}],1],{_,x_,x_}]

Grid n×n×n

Entity["Graph",{"Grid",{n,n,n}}]["Local"]

seq=Table[GraphData[{"Grid",{n,n,n}},"Local"],{n,10}]

Table[GraphData[{"Grid",{n,n,n}},"LocalGraphName"],{n,10}]

Grid k×m×n

Entity["Graph",{"Grid",{k,m,n}}]["Local"]

DeleteCases[Sort@Flatten[Table[{
{k,m,n},
GraphData[{"Grid",{k,m,n}},"Local"],
Piecewise[{{True,k m n==2||k==m==n==2||(k m n==4&&Max[k,m,n]==2)}},False]
},{n,5},{m,n},{k,m}],2],{_,x_,x_}]

HalvedCube

seq=Table[GraphData[{"HalvedCube",n},"Local"],{n,10}]

Hanoi

seq=Table[GraphData[{"Hanoi",n},"Local"],{n,5}]

Helm

seq=Table[GraphData[{"Helm",n},"Local"],{n,3,20}]

Hypercube

Entity["Graph",{"Hypercube",n}]["Local"]

seq=Table[GraphData[{"Hypercube",n},"Local"],{n,0,10}]

Table[GraphData[{"Hypercube",n},"LocalGraphName"],{n,0,10}]

Keller

Entity["Graph",{"Keller",n}]["Local"]

seq=Table[GraphData[{"Keller",n},"Local"],{n,5}]

Table[GraphData[{"Keller",n},"LocalGraphName"],{n,5}]

King n×n

seq=Table[GraphData[{"King",{n,n}},"Local"],{n,20}]

King m×n

Entity["Graph",{"King",{m,n}}]["Local"]

DeleteCases[Flatten[Table[{
{m,n},
GraphData[{"King",{m,n}},"Local"],
Piecewise[{{True,Max[m,n]==2}},False]
},{n,10},{m,n}],1],{_,x_,x_}]

Knight n×n

Entity["Graph",{"Knight",{n,n}}]["Local"]

seq=Table[GraphData[{"Knight",{n,n}},"Local"],{n,20}]

Knight m×n

Entity["Graph",{"Knight",{m,n}}]["Local"]

DeleteCases[Flatten[Table[{
{m,n},
GraphData[{"Knight",{m,n}},"Local"],
Piecewise[{{True,Min[m,n]==2&&Max[m,n]==4}},False]
},{n,10},{m,n}],1],{_,x_,x_}]

Ladder

Entity["Graph",{"Ladder",n}]["Local"]

seq=Table[GraphData[{"Ladder",n},"Local"],{n,20}]

LadderRung

seq=Table[GraphData[{"LadderRung",n},"Local"],{n,20}]

LucasCube

seq=Table[GraphData[{"LucasCube",n},"Local"],{n,15}]

MengerSponge

seq=Table[GraphData[{"MengerSponge",n},"Local"],{n,3}]

MoebiusLadder

Entity["Graph",{"MoebiusLadder",n}]["Local"]

seq=Table[GraphData[{"MoebiusLadder",n},"Local"],{n,3,25}]

Table[GraphData[{"MoebiusLadder",n},"LocalGraphName"],{n,3,25}]

Mycielski

Entity["Graph",{"Mycielski",n}]["Local"]

seq=Table[GraphData[{"Mycielski",n},"Local"],{n,11}]

Odd

Entity["Graph",{"Odd",n}]["Local"]

seq=Table[GraphData[{"Odd",n},"Local"],{n,7}]

Table[GraphData[{"Odd",n},"LocalGraphName"],{n,7}]

Pan

seq=Table[GraphData[{"Pan",n},"Local"],{n,3,20}]

Path

Entity["Graph",{"Path",n}]["Local"]

seq=Table[GraphData[{"Path",n},"Local"],{n,20}]

Table[GraphData[{"Path",n},"LocalGraphName"],{n,20}]

PathComplement

seq=Table[GraphData[{"PathComplement",n},"Local"],{n,20}]

Pell

seq=Table[GraphData[{"Pell",n},"Local"],{n,9}]

Prism

Entity["Graph",{"Prism",n}]["Local"]

seq=Table[GraphData[{"Prism",n},"Local"],{n,3,25}]

Table[GraphData[{"Prism",n},"LocalGraphName"],{n,3,25}]

Queen n×n

seq=Table[GraphData[{"Queen",{n,n}},"Local"],{n,20}]

Rook n×n

seq=Table[GraphData[{"Rook",{n,n}},"Local"],{n,20}]

RookComplement n×n

seq=Table[GraphData[{"RookComplement",{n,n}},"Local"],{n,20}]

SierpinskiCarpet

seq=Table[GraphData[{"SierpinskiCarpet",n},"Local"],{n,4}]

SierpinskiGasket

seq=Table[GraphData[{"SierpinskiGasket",n},"Local"],{n,5}]

SierpinskiTetrahedron

seq=Table[GraphData[{"SierpinskiTetrahedron",n},"Local"],{n,6}]

Spoke n×n

seq=Table[GraphData[{"Spoke",{n,n}},"Local"],{n,5}]

StackedBook

seq=Table[GraphData[{"StackedBook",{n,n}},"Local"],{n,10}]

StackedPrism

seq=Table[GraphData[{"StackedPrism",{n,n}},"Local"],{n,3,5}]

Star

Entity["Graph",{"Star",n}]["Local"]

seq=Table[GraphData[{"Star",n},"Local"],{n,25}]

Sun

seq=Table[GraphData[{"Sun",n},"Local"],{n,3,20}]

Sunlet

seq=Table[GraphData[{"Sunlet",n},"Local"],{n,3,20}]

TorusGrid n×n

seq=Table[GraphData[{"TorusGrid",{n,n}},"Local"],{n,3,20}]

Table[GraphData[{"TorusGrid",{n,n}},"LocalGraphName"],{n,3,20}]

Transposition

Entity["Graph",{"Transposition",n}]["Local"]

seq=Table[GraphData[{"Transposition",n},"Local"],{n,6}]

Table[GraphData[{"Transposition",n},"LocalGraphName"],{n,6}]

Table[Binomial[n,2],{n,6}]

Trapezohedron

Entity["Graph",{"Trapezohedron",n}]["Local"]

seq=Table[GraphData[{"Trapezohedron",n},"Local"],{n,3,20}]

Triangular

seq=Table[GraphData[{"Triangular",n},"Local"],{n,2,20}]

TriangularGrid

seq=Table[GraphData[{"TriangularGrid",n},"Local"],{n,0,20}]

TriangularHoneycombAcuteKnight

seq=Table[GraphData[{"TriangularHoneycombAcuteKnight",n},"Local"],{n,20}]

TriangularHoneycombBishop

seq=Table[GraphData[{"TriangularHoneycombBishop",n},"Local"],{n,20}]

TriangularHoneycombObtuseKnight

seq=Table[GraphData[{"TriangularHoneycombObtuseKnight",n},"Local"],{n,20}]

TriangularHoneycombQueen

seq=Table[GraphData[{"TriangularHoneycombQueen",n},"Local"],{n,20}]

TriangularHoneycombRook

seq=Table[GraphData[{"TriangularHoneycombRook",n},"Local"],{n,20}]

TriangularSnake

seq=Table[GraphData[{"TriangularSnake",n},"Local"],{n,1,20,2}]

Web

seq=Table[GraphData[{"Web",n},"Local"],{n,3,20}]

Wheel

Entity["Graph",{"Wheel",n}]["Local"]

seq=Table[GraphData[{"Wheel",n},"Local"],{n,4,20}]

WheelComplement

seq=Table[GraphData[{"WheelComplement",n},"Local"],{n,4,20}]

WhiteBishop n×n

seq=Table[GraphData[{"WhiteBishop",{n,n}},"Local"],{n,2,20}]

Zebra n×n

seq=Table[GraphData[{"Zebra",{n,n}},"Local"],{n,20}]

GraphData

GraphDataClassString

GraphDataClassString["Local"]