Symbends generates symmetric bends, a special kind of almost-knot described by Roger Miles in his book, Symmetric Bends, using a self-avoiding walk algorithm that has been "broken" to generate what we call "semi-self-avoiding walks."
walks.py
is taken nearly verbatim from gabsen's SAW repo.