Gambler's ruin example. Transient states (blue) lead to absorbing states (red). Compute expected absorption times via fundamental matrix N=(I−Q)⁻¹.