Chris Mabe Homework 8

Should check node1 < adjList.size() before using it, to avoid crashes.