In[]:=
PacletFind["PeterBurbery/UndirectedGraphs"]
Out[]=
{}
In[]:=
Do[Quiet[Get/@FileNames["*.wl","C:\\Users\\Peter\\OneDrive - Marshall University\\GitHub\\undirected-graphs-paclet\\Undirected Graphs\\Kernel"];,Get::noopen],4]
In[]:=
Remove[Global`AlternatingTreeGraph]
Compute a rank polynomial:
In[]:=
randomGraph=RandomGraph[{10,20}]
Out[]=
In[]:=
ToEntity[randomGraph]
.
Out[]=
ToEntity[randomGraph]
GraphData won’t work here because this graph has no entity.
In[]:=
RankPolynomial[randomGraph]
Out[]=
1+20x.+190+7y.+1133+133y.+6+4712+1191y.+145+8+14307+6573y.+1566+225+19++32042+24369y.+9886+2617+458+48+2+51577+61216y.+39168+16937+5187+1095+144+9+54643+96941y.+92666+60718+29221+10458+2731+495+56+3+29215+74694y.+102007+95652+66918+36020+15009+4789+1137+190+20+
2
x.
3
x.
2
y.
4
x.
2
y.
3
y.
5
x.
2
y.
3
y.
4
y.
5
y.
6
x.
2
y.
3
y.
4
y.
5
y.
6
y.
7
x.
2
y.
3
y.
4
y.
5
y.
6
y.
7
y.
8
x.
2
y.
3
y.
4
y.
5
y.
6
y.
7
y.
8
y.
9
y.
9
x.
2
y.
3
y.
4
y.
5
y.
6
y.
7
y.
8
y.
9
y.
10
y.
11
y.
Compute a coboundary polynomial:
In[]:=
CoboundaryPolynomial[randomGraph]
Out[]=
9
q.
8
q.
7
q.
2
-1+t.
6
q.
3
-1+t.
2
t.
5
q.
4
-1+t.
2
t.
3
t.
4
q.
5
-1+t.
2
t.
3
t.
4
t.
5
t.
3
q.
6
-1+t.
2
t.
3
t.
4
t.
5
t.
6
t.
2
q.
7
-1+t.
2
t.
3
t.
4
t.
5
t.
6
t.
7
t.
8
-1+t.
2
t.
3
t.
4
t.
5
t.
6
t.
7
t.
8
t.
9
t.
9
-1+t.
2
t.
3
t.
4
t.
5
t.
6
t.
7
t.
8
t.
9
t.
10
t.
11
t.
Compute a reliability polynomial:
In[]:=
ReliabilityPolynomial[randomGraph]
Out[]=
-1+9p.+45+162+463+1100+2225+3858+5668+6766+5958+2960
9
-1+p.
2
p.
3
p.
4
p.
5
p.
6
p.
7
p.
8
p.
9
p.
10
p.
11
p.
Compute an independence polynomial:
In[]:=
EchoTiming[IndependencePolynomial[randomGraph]]
⌚
0.0011914
Out[]=
1+10x.+25+17+3
2
x.
3
x.
4
x.
Graph Construction and Representation
Graph Construction and Representation
In[]:=
AlternatingTreeGraph[10]
Out[]=
In[]:=
BananaTreeGraph[{6,7}]
Out[]=
In[]:=
BookGraph[7]
Out[]=
In[]:=
CombGraph[7]
Out[]=
This is one of my favorite graphs.
In[]:=
FirecrackerGraph[{6,7}]
Out[]=
In[]:=
GearGraph[7]
Out[]=
In[]:=
GeneralizedTriangularGridGraph[{7,7}]
Out[]=
In[]:=
HelmGraph[7]
Out[]=
I think I want to update the definition of ResistanceMatrix to give a SparseArray by default.
Test if this is a graphical degree sequence:
The Petersen graph with 10 edges:
Insert a new vertex 11 into the first edge:
I didn’t create VertexCoordinateList, I found it on the Function Repository. Ed Pegg Jr created it. It seems like GraphEmbedding does the same thing.
Find the coordinates of the vertices in the Petersen graph:
Find the coordinates of the vertices in a generalized triangular grid graph of size 7 by 7:
