changed name of degree.py to centrality.py, so we can have all of the various centrality functions in there together nicely