Several algorithms need to consider the watershed boundary: <img width="1079" alt="Image" src="https://github.com/user-attachments/assets/09def1cc-a58c-4c82-9918-fce1c0632d33" /> Ideally, the stream burning should not cross boundary.