Updated graph and adjacencylist