Represent graph using adjacency list