Orignal code from Matthew Saltz's MS Thesis. Most of the code has been integrated into graphalytics.