Mathematical knitting