adjacency list representation of a graph