In mathematics, a partial cyclic order is a ternary relation that generalizes a cyclic order in the same way that a partial order generalizes a linear order.
Over a given set, a partial cyclic order is a ternary relation
R
R(x,y,z) ⇒ R(y,z,x)
R(x,y,z) ⇒ \notR(z,y,x)
R(x,y,z)
R(x,z,u) ⇒ R(x,y,u)
linear extension, Szpilrajn extension theorem
standard example
The relationship between partial and total cyclic orders is more complex than the relationship between partial and total linear orders. To begin with, not every partial cyclic order can be extended to a total cyclic order. An example is the following relation on the first thirteen letters of the alphabet: ∪ . This relation is a partial cyclic order, but it cannot be extended with either abc or cba; either attempt would result in a contradiction.
The above was a relatively mild example. One can also construct partial cyclic orders with higher-order obstructions such that, for example, any 15 triples can be added but the 16th cannot. In fact, cyclic ordering is NP-complete, since it solves 3SAT. This is in stark contrast with the recognition problem for linear orders, which can be solved in linear time.