def determine_cycle_edges(cycle_nodes):
    """Determine the edges of the nodes in the cycle."""

    edges = []
    for idx, elem in enumerate(cycle_nodes):
        this_element = elem
        next_element = cycle_nodes[(idx + 1) % len(cycle_nodes)]
        edges.append((this_element, next_element))
    return edges