added weighted adjacency list