def allclose(x, y, rtol=1.0000000000000001e-05, atol=1e-08):
    """Returns True if x and y are sufficiently close, elementwise.

    Parameters
    ----------
    rtol : float
        The relative error tolerance.
    atol : float
        The absolute error tolerance.

    """
    # assume finite weights, see numpy.allclose() for reference
    for xi, yi in zip(x,y):
        if not ( abs(yi-xi) <= atol + rtol * abs(yi) ):
            return False
    return True
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/isomorphism/matchhelpers.py/allclose/swapped operands of `-`