Changed the out degree method.