added adjacency list for graph