Added adjList Initialization to the constructor and calcAdjacencies