Scientists at Japanese universities developed a mathematical framework using topology to classify textile structures like knitting and crochet.