def check_if_two_nodes_in_same_building(i, j, nf):

    """
    :param i: node id 1
    :param j: node id 2
    :param nf: number of floors in each building
    :return: True, if they are in same building, else False
    """
    s1 = int(i/nf)
    s2 = int(j/nf)
    if s1 == s2:
        return True
    else:
        return False