The inverse of a cycle will be another cycle.
The cycleinv command computes the inverse of a cycle.
Example. Input:
Output: