Refactor triple generation to produce aesthetically pleasing graphs

https://www.pivotaltracker.com/story/show/81411416