Macaulay2 » Documentation
Packages » Graphs :: cycleGraph
next | previous | forward | backward | up | index | toc

cycleGraph -- Constructs a cycle graph

Synopsis

Description

A cycle graph is a graph on n vertices in which all the vertices are in a closed chain of edges.

i1 : C = cycleGraph 5

o1 = Graph{0 => {1, 4}}
           1 => {0, 2}
           2 => {1, 3}
           3 => {2, 4}
           4 => {0, 3}

o1 : Graph

Ways to use cycleGraph :

For the programmer

The object cycleGraph is a method function.