I wish the author had documentation on the algorithm somewhere. The code has comments, but I didn't see anything that talked about the high level approach. The neat thing is that it makes a giant, random knot, but if you follow each thread it alternatives between going over and under each thread it crosses.