dancers.js provides a library that can be included in a web page to draw square dance formartions. demo.html and formations-test.html provide examples of how it's used.
See demo.html for more details.
The sd_graph subdirectory contains a python program that transforms the sequence files written by Bill Ackerman's "sd, A Square Dance Caller's Helper" into a graph with square dance formations as nodes and square dance calls as the edges betweeen them. See the README file in that subdirectory for details.