Bug in Degree() solved.