You can assign Guards to patrol certain routes in your Prison by drawing a route using the "Guard Patrols" function, then press on one of the drawn squares to assign a Guard. The same can be done with Dog Handlers and Armed Guards.
Here's an interesting video tutorial for patrol setup: