def hasrepression(graph, cycle):
    """Return whether the cycle (list of node IDs) in the graph (NetworkX DiGraph) includes any repressions."""
    return any(graph.edges[cycle[i], cycle[(i + 1) % len(cycle)]]['repress'] for i in range(len(cycle)))