degree_tm function

Degree centrality in a two-mode network