Started adding pagerank type code in, still need to work on distributing the degrees though.