Added function prototype for determining degree of a node.