Well, the behavior of the NPC's are scripted.
Obviously they have a defined way to follow, or at least that's how it should work.
They can't see you, so the A.I. is closed to the zone in question that each NPC follows.
I haven't searched it much, so i can't tell about the patterns (route) that each NPC takes.