Updated graph unit tests to use range API.