test fnction for degree centrality of graphs added