Added methods for calculating in, out and overall degree of nodes both in absolute count and proportion.