Degree centrality formula