Changed the attribute ne to a method get_num_edges, changed degree & max_degree to get_degree, get_max_degree