def can_connect_via_site_wire(a_site, a_site_wire, b_site, b_site_wire):
    """ Are these two site wires the same connection resource? """
    if a_site != b_site:
        # Not in same site, not connected
        return False

    # Must be connected via the same site wire
    return a_site_wire == b_site_wire