A bunch of code for drawing graphs and things.