cycle
A cycle in a graph, digraph, or multigraph
, is a simple path from a vertex to itself (i.e., a path where the first vertex is the same as the last vertex and no edge is repeated).
For example, consider this graph:
and are two of the cycles in this graph. is not a cycle, however, since it uses the edge connecting and twice. is not a cycle because it begins on but ends on .
A cycle of length is sometimes denoted and may be referred to as a polygon of sides: that is, is a triangle, is a quadrilateral
, is a pentagon
, etc.
An even cycle is one of even length; similarly, an odd cycle is one of odd length.