We can express this as, assuming that T and A are time-independent, wi(t+1)=∑j[wj(t)Tj→iAj→i+wi(t)Ti→j(1−Ai→j)].