changed return type for connected active elements of a node to unsigned int