degree centrality function for graphs added.

Test module not yet written.