GraphTheory
SpecialGraphs[CubeGraph]
construct cube graph
SpecialGraph[DodecahedronGraph]
construct dodecahedron graph
SpecialGraphs[IcosahedronGraph]
construct icosahedron graph
SpecialGraphs[TetrahedronGraph]
construct tetrahedron graph
SpecialGraphs[OctahedronGraph]
construct octahedron graph
Calling Sequence
Parameters
Description
Examples
CubeGraph()
CubeGraph(V8)
DodecahedronGraph()
DodecahedronGraph(V20)
IcosahedronGraph()
IcosahedronGraph(V12)
OctahedronGraph()
OctahedronGraph(V6)
TetrahedronGraph()
TetrahedronGraph(V4)
V4
-
(optional) list of 4 vertex labels
V6
(optional) list of 6 vertex labels
V8
(optional) list of 8 vertex labels
V12
(optional) list of 12 vertex labels
V20
(optional) list of 20 vertex labels
The CubeGraph command creates the cube graph on 8 vertices. A cube is a 3-regular and 6-faced planar graph. As an option, you may input the labels of the vertices as a set or list of size 8.
The DodecahedronGraph command creates the dodecahedron graph on 20 vertices. A dodecahedron is a 3-regular and 12-faced planar graph. As an option, you may input the labels of the vertices as a set or list of size 20.
The IcosahedronGraph command creates the icosahedron graph on 12 vertices. An icosahedron is a 5-regular and 20-faced planar graph. As an option, you may input the labels of the vertices as a set or list of size 12.
The OctahedronGraph command creates the octahedron graph on 6 vertices. As an option, you may input the labels of the vertices as a set or list of size 6.
The TetrahedronGraph command creates the tetrahedron graph (the complete graph) on 4 vertices. As an option, you may input the labels of the vertices as a set or list of size 4.
with⁡GraphTheory:
with⁡SpecialGraphs:
C≔CubeGraph⁡
C≔Graph 1: an undirected graph with 8 vertices and 12 edges
DrawGraph⁡C
H≔DodecahedronGraph⁡
H≔Graph 2: an undirected graph with 20 vertices and 30 edges
Neighborhood⁡H,19
14,18,20
IsPlanar⁡H,F
true
nops⁡F
12
DrawGraph⁡H
K≔IcosahedronGraph⁡
K≔Graph 3: an undirected graph with 12 vertices and 30 edges
IsPlanar⁡K,F
map⁡nops,F
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
DrawGraph⁡K
G≔OctahedronGraph⁡
G≔Graph 4: an undirected graph with 6 vertices and 12 edges
IsPlanar⁡G
DrawGraph⁡G
T≔TetrahedronGraph⁡
T≔Graph 5: an undirected graph with 4 vertices and 6 edges
DrawGraph⁡T
See Also
SpecialGraphs
Download Help Document