I am looking for an algorithm that can generate something like what is in this image:

I read about drunk walking algorithms, but they don't seem to suit me what I need. I am not sure if I can achieve what I am looking for with a strongly modified drunken walking algorithm, or if I have to look for some other algorithm that I can interact with.
algorithm graph-algorithm graphics
Talon876
source share