def get_node_presence_from_link(node_presence, n, b, e):
    """
    Return the maximal temporal node corresponding to (b,e,n)

    :param node_presence:
    :param n: node
    :param b: beginning of the interval (time)
    :param e: ending of the interval (time)
    :return: Maximal temporal node presence corresponding to (b,e,n) : (t0,t1)
    """
    for t0, t1 in zip(node_presence[n][::2], node_presence[n][1::2]):
        if t0 <= b and e <= t1:
            return t0, t1
    return None