A Graph Model and a Layout Algorithm for Knitting Patterns

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gray, Kathryn, Bell, Brian, Kobourov, Stephen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914842007306240
author Gray, Kathryn
Bell, Brian
Kobourov, Stephen
author_facet Gray, Kathryn
Bell, Brian
Kobourov, Stephen
contents Knitting, an ancient fiber art, creates a structured fabric consisting of loops or stitches. Publishing hand knitting patterns involves lengthy testing periods and numerous knitters. Modeling knitting patterns with graphs can help expedite error detection and pattern validation. In this paper, we describe how to model simple knitting patterns as planar graphs. We then design, implement, and evaluate a layout algorithm to visualize knitting patterns. Knitting patterns correspond to graphs with pre-specified edge lengths (e.g., uniform lengths, two lengths, etc.). This yields a natural graph layout optimization problem: realize a planar graph with pre-specified edge lengths, while ensuring there are no edge crossings. We quantitatively evaluate our algorithm using real knitting patterns of various sizes against three others; one created for knitting patterns, one that maintains planarity and optimizes edge lengths, and a popular force-directed algorithm.
format Preprint
id arxiv_https___arxiv_org_abs_2406_13800
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Graph Model and a Layout Algorithm for Knitting Patterns
Gray, Kathryn
Bell, Brian
Kobourov, Stephen
Human-Computer Interaction
Knitting, an ancient fiber art, creates a structured fabric consisting of loops or stitches. Publishing hand knitting patterns involves lengthy testing periods and numerous knitters. Modeling knitting patterns with graphs can help expedite error detection and pattern validation. In this paper, we describe how to model simple knitting patterns as planar graphs. We then design, implement, and evaluate a layout algorithm to visualize knitting patterns. Knitting patterns correspond to graphs with pre-specified edge lengths (e.g., uniform lengths, two lengths, etc.). This yields a natural graph layout optimization problem: realize a planar graph with pre-specified edge lengths, while ensuring there are no edge crossings. We quantitatively evaluate our algorithm using real knitting patterns of various sizes against three others; one created for knitting patterns, one that maintains planarity and optimizes edge lengths, and a popular force-directed algorithm.
title A Graph Model and a Layout Algorithm for Knitting Patterns
topic Human-Computer Interaction
url https://arxiv.org/abs/2406.13800