def compression_ratio(initial_edge, final_edge, poweredge, _):
    """Compute data compression ratio"""
    try:
        return initial_edge / (final_edge + poweredge)
    except ZeroDivisionError:
        return 1.0
