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.
withGraphTheory:
withSpecialGraphs:
C≔CubeGraph
C≔Graph 1: an undirected graph with 8 vertices and 12 edges
DrawGraphC
H≔DodecahedronGraph
H≔Graph 2: an undirected graph with 20 vertices and 30 edges
NeighborhoodH,19
14,18,20
IsPlanarH,F
true
nopsF
12
DrawGraphH
K≔IcosahedronGraph
K≔Graph 3: an undirected graph with 12 vertices and 30 edges
IsPlanarK,F
mapnops,F
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3
DrawGraphK
G≔OctahedronGraph
G≔Graph 4: an undirected graph with 6 vertices and 12 edges
IsPlanarG
DrawGraphG
T≔TetrahedronGraph
T≔Graph 5: an undirected graph with 4 vertices and 6 edges
DrawGraphT
See Also
SpecialGraphs
Download Help Document