Counting node degree (InDegree + OutDegree) correctly.