eaglesa lab 8

Should check node1 < adjList.size() before using it.