homework 08 submission

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