GraphTheory[SpecialGraphs]
PrismGraph
construct prism graph
AntiPrismGraph
construct antiprism graph
Calling Sequence
Parameters
Description
Details
Examples
PrismGraph(n)
AntiPrismGraph(n)
n
-
positive integer >=3
The PrismGraph(n) command returns the prism graph with parameter n. Namely it returns the Cartesian product of CycleGraph(n) and PathGraph(2).
The AntiPrismGraph(n) command returns the antiprism graph with parameter n. It is constructed as two cycles on n vertices, with each vertex on the inner cycle connected to two adjacent vertices on the outer cycle.
The prism graph with parameter n is the Cayley graph of the dihedral group of degree n.
with⁡GraphTheory:
with⁡SpecialGraphs:
G≔PrismGraph⁡5
G≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
DrawGraph⁡G
H≔AntiPrismGraph⁡5
H≔Graph 2: an undirected graph with 10 vertices and 20 edge(s)
DrawGraph⁡H
See Also
CycleGraph
PathGraph
SpecialGraphs
Download Help Document