Skip to content

oisincar/siteswap_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Siteswap Graph Generator

A generator for siteswap graphs! Can input both a number of objects and a throw height, and also just a siteswap and it’ll generate the graphviz code needed to make that graph!

It’s also only 20 lines or so long, so that’s neat.

Full state diagrams

Here’s some examples for graphs of all patterns for a given number of balls:

images/stateDiag3b5.png

images/stateDiag5b9.png

images/stateDiagallb9.png

Siteswap state diagrams

It can produce tables showing the states any given siteswap goes through. For example 97531 and 714…

9|xxxx____x
7|xxx___xx_
5|xx__xxx__
3|x_xxxx___
1|xxxxx____

7|x_xx__x
1|xxx__x_
4|xx_xx__

As well as graphs of those (here, 97531 and 66671777161)! Prime siteswaps will be a loop with no repeating states, whereas composite siteswaps will have several linking nodes and subloops showing the smaller patterns that make them up.

images/ss97531.png

images/ss66671777161.png

About

Graphing siteswaps using haskell and graphviz.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published