This code must be used with the SNAP library available at http://snap.stanford.edu/
This code is by Grant Schoenebeck but was derived from the SNAP library.

