get_agg_degree_in function

Get an aggregate value from the indegree of nodes