Making get_nodes const.