Added edge weights to the adjacency list