Updating AdjacencyList representation and functionality