Changed degree to get_degree and max_degree to get_max_degree