This is the code in On Dentographs, A New Method of Visualizing Library Collections, published in The Code4Lib Journal issue 16 (January 2012).
Data files are available at http://hdl.handle.net/10315/10024.
With the code and data you can replicate everything in the article.