get_agg_degree_total function

Get an aggregate value from the total degree of nodes